Empty

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

Empty

Declaration

function Empty( sFieldName: String ): WordBool;

Description

Determines whether or not the named field is empty.

Parameters

sFieldName: The name of the field.

Return Value

True if the field contents are empty, and False if not. Character and date fields are considered empty if they consist of spaces. Numeric fields are empty if they evaluate to zero. Logical fields are empty if they evaluate as False. Memo fields are empty if the memo block reference evaluates to zero.

Delphi Example

if ApTbl.Empty( 'NOTES' ) then

 ShowMessage( 'Notes are empty!' ) 

else

 ShowMessage( 'Notes are not empty!' ); 

C++Builder Example

if (ApTbl->Empty( "NOTES" ))

 ShowMessage( "Notes are empty!" ); 

else

 ShowMessage( "Notes are not empty!" );