TExprBuiltInManager.AddDateTimeVariable function
Add datetime variable to built-in collection
Declaration
function AddDateTimeVariable(const ACategory: TBuiltInCategory;
const AName: ShortString; AValue: TDateTime)
: TFPBuiltInExprIdentifierDefArguments
ACategory | Category for the datetime variable |
AName | Name of the datetime variable |
AValue | Initial datetime value |
Function result
Returns the added datetime variable identifier
Description
The AddDateTimeVariable method adds a datetime variable with the specified name and initial value to the built-in collection. The variable will be available in expressions under the provided name and will initially hold the specified datetime value.
Built-in datetime variables can be used to provide predefined date/time values like current date, system timestamps, or reference dates that expressions can access and use in date/time calculations.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
