Advantage TDataSet Descendant
Retrieves the time value from the given time or timestamp field as the number of milliseconds since midnight.
function AdsGetMilliseconds( const strFieldName: string ): Longint;
|
strFieldName |
Name of field to retrieve |
CAUTION It is recommended that this Advantage extended method not be used. Please read the Caution About Extended Methods for more information. The suggested native Delphi method to use instead is: TField.AsDateTime. See your Delphi documentation for more information about this native Delphi method.
AdsGetMilliseconds returns the number of milliseconds since midnight stored in a time field, ModTime field, or in the time portion of a timestamp field.
dtTime := AdsTable1.FieldByName( ‘TimeEntered’ ).AsDateTime;