Class.IsNull

Parent Previous Next

Class.IsNull.

Verifies whether a class variable points to an object instance in memory. Returns true if the class variable is Null and points to nothing. Otherwise returns false.


Syntax.


 IsNull() : Boolean

 



Example:


 TCustomType objA.New(), objB;

 Boolean hasObj;

 hasObj := Not objA.IsNull(); //Now hasObj == True;

 hasObj := Not objB.IsNull(); //Now hasObj == False;