TExprBuiltInManager.AddVariable function
Add variable to built-in collection
Declaration
function AddVariable(const ACategory: TBuiltInCategory;
const AName: ShortString; AResultType: TResultType;
const AValue: AnsiString)
: TFPBuiltInExprIdentifierDefArguments
ACategory | Category for the variable |
AName | Name of the variable |
AResultType | Result type for the variable |
AValue | Initial value for the variable |
Function result
Returns the added variable identifier
Description
The AddVariable method creates and adds a new built-in variable to the manager with the specified category, name, and value. The variable becomes available for use in expressions parsed by this manager.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
