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

TFPExprIdentifierDefs.AddDateTimeVariable

Add a datetime variable to the collection

Declaration

Source position: fpexprpars.pp line 595

public function TFPExprIdentifierDefs.AddDateTimeVariable(

  const AName: ShortString;

  AValue: TDateTime

):TFPExprIdentifierDef;

Arguments

AName

  

The name of the datetime variable

AValue

  

The datetime value of the variable

Function result

Returns the added datetime variable identifier

Description

The AddDateTimeVariable method creates and adds a new date/time variable identifier to the collection with the specified name and datetime value. The variable can then be referenced in expressions to retrieve the date/time value.


Documentation generated on: Dec 15 2025