Skip to main content

TdxSpreadSheetCustomFormula.Validate Method

Checks if the parsed formula expression is correct.

Declaration

procedure Validate;

Remarks

This procedure supports the internal infrastructure and is not intended to be used directly from your code.

The formula controller automatically calls the Validate procedure when the source text parsing is complete. Calling this procedure raises the EdxSpreadSheetFormulaIsTooLongError exception if at least one of the following conditions is met:

  • The source text string is longer than 8192 characters;

  • Every function within the parsed formula expression accepts more than 254 parameters;

  • The parsed formula expression has more than 2048 cell and/or cell range references;

  • The maximum nesting level of the token hierarchy exceeds 64.

See Also