TAdsTable.AdsGetMilliseconds

Advantage TDataSet Descendant

Retrieves the time value from the given time or timestamp field as the number of milliseconds since midnight.

Syntax

function AdsGetMilliseconds( const strFieldName: string ): Longint;

Parameter

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.

Description

AdsGetMilliseconds returns the number of milliseconds since midnight stored in a time field, ModTime field, or in the time portion of a timestamp field.

Example

dtTime := AdsTable1.FieldByName( ‘TimeEntered’ ).AsDateTime;

See Also

AdsGetField

AdsGetTime

AdsSetMilliseconds