Add datetime variable to built-in collection
Source position: fpexprpars.pp line 823
public function TExprBuiltInManager.AddDateTimeVariable( |
const ACategory: TBuiltInCategory; |
const AName: ShortString; |
AValue: TDateTime |
ACategory |
|
Category for the datetime variable |
AName |
|
Name of the datetime variable |
AValue |
|
Initial datetime value |
Returns the added datetime variable identifier
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.