Advantage TDataSet Descendant
Retrieves a logical value from the given field.
function AdsGetLogical( strFieldName : String ) : Boolean;
|
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.AsBoolean. See your Delphi documentation for more information about this native Delphi method.
The value returned will be either True (1) or False (0). AdsGetLogical also returns False if the logical field contains a NULL value. To determine if a False return type is NULL or assigned to False, call AdsIsEmpty or AdsGetString on the numeric field.
bValue := AdsTable1.FieldByName( ‘IsMarried’ ).AsBoolean;