The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home MathPack Math2 Class TMathExpression Events OnVarRequest | |||||||||
See also: Evaluate, TOnVarRequestEvent, HelperObject | |||||||||
OnVarRequest |
|||||||||
The event OnVarRequest is triggered when the function parser of TMathExpression encounters a variable identifier. The parameter VarName contains the name of the variable and the parameter TkPos contains its position in the parsed expression. You have to supply the corresponding value by passing it in the parameter Value. If the variable name is not defined, you should return a NULL value (declared in Delphi unit Variants) in order to trigger an exception ("undefined variable").
|