XEROF

 

xlsgen 4.5.0.80 : Try parse formula


Build 4.5.0.80 of xlsgen adds support for testing the parsing of formulas. Typically, writing a formula in a cell or to an object returns an exception if there is a problem, but it does not tell what the problem is. This parsing error is specifically the purpose of the introduced TryParseFormula method available at the workbook level.


typedef enum
{
[helpstring("Formula parsing error, no error")] parseformula_noerror = 0,
[helpstring("Formula parsing error, syntax error")] parseformula_syntaxerror = 1,
[helpstring("Formula parsing error, out of memory")] parseformula_outofmemory = 2,
[helpstring("Formula parsing error, not enough parameters")] parseformula_notenoughparams = 3,
[helpstring("Formula parsing error, too many parameters")] parseformula_toomanyparams = 4,
[helpstring("Formula parsing error, impaired parenthesis")] parseformula_impairedparenthesis = 5,
[helpstring("Formula parsing error, impaired brace")] parseformula_impairedbrace = 6,
[helpstring("Formula parsing error, division by zero")] parseformula_divisionbyzero = 7,
[helpstring("Formula parsing error, function does not exist")] parseformula_functionnotexist = 8,
[helpstring("Formula parsing error, wrong argument separator")] parseformula_wrongargumentseparator = 9

} enumParseFormulaError;


It works like this :

C/C++ code

xlsgen::enumParseFormulaError error = workbook->TryParseFormula(L"=SUMXYZ(5;3;A2)"); // returns parseformula_functionnotexist because SUMXYZ() does not exist



Posted on 05-December-2019 23:19 | Category: xlsgen, Excel generator | comment[0] | trackback[0]

 

 

<-- previous page

< July >
0102030405
0607080910
1112131415
1617181920
2122232425
2627282930
31



 

 

This site
Home
Articles

DevTools
CPU-Z
EditPlus
ExplorerXP
Kill.exe
OllyDbg
DependencyWalker
Process Explorer
autoruns.exe
Araxis
COM Trace injection
CodeStats
NetBrute
FileMon/Regmon
BoundsChecker
AQTime profiler
Source monitor
GDI leaks tracking
Rootkit revealer
Rootkit removal
RunAsLimitedUser(1)
RunAsLimitedUser(2)

 

 

Liens
Le Plan B
Un jour à Paris
Meneame
Rezo.net (aggr)
Reseau voltaire
Cuba solidarity project
Le grand soir
L'autre journal
Le courrier suisse
L'Orient, le jour
Agoravox (aggr)