TAdsTable.AdsIsEmpty

Advantage TDataSet Descendant

Determines if a given field is empty (null).

Syntax

function AdsIsEmpty( strFieldName : String ) : Boolean;

Parameter

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.

Description

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.

Example

bEmpty := AdsTable1.FieldByName( ‘Salary’ ).IsNull;

See Also

AdsSetEmpty

AdsSetField