Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TExprBuiltInManager.AddDateTimeVariable

Add datetime variable to built-in collection

Declaration

Source position: fpexprpars.pp line 823

public function TExprBuiltInManager.AddDateTimeVariable(

  const ACategory: TBuiltInCategory;

  const AName: ShortString;

  AValue: TDateTime

):TFPBuiltInExprIdentifierDef;

Arguments

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.


Documentation generated on: Dec 15 2025