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....


Unit: SDL_math2
Class: none
Declaration: function ExtractVarnames (Formula: string; VNames: TStringList): integer;

The procedure ExtractVarnames extracts all variable names contained in the mathematical expression Formula and returns their names in the stringlist VNames. Please note that the equation is evaluated according to the same rules as in TMathExpression recognizing all the predefined functions of TMathExpression.

The function returns a value of -1 if the expression is syntactically wrong, or the number of found variables.

Last Update: 2020-Aug-19