Advantage TDataSet Descendant
Determines if a given field is empty (null).
function AdsIsEmpty( strFieldName : String ) : Boolean;
|
strFieldName |
Name of field to query. |
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.IsNull. See your Delphi documentation for more information about this native Delphi method.
Use AdsIsEmpty to determine if the indicated field is NULL for ADTs or empty for DBFs. The NULL/empty value can vary between data types. Therefore, AdsIsEmpty can be used to be certain whether the current field value is NULL/empty.
bEmpty := AdsTable1.FieldByName( ‘Salary’ ).IsNull;