Assigned

Belongs to : Function

Description

The Assigned function checks to see if a reference is not nil. It returns True if not nil, and False if nil.

Use of a Nil reference will result in an exception.

The three versions of Assigned allow the function to work on data pointers, object references, and class method references.

It is better to use Assigned rather than Nil when referring to methods so as to distinguish from the checking of a nil result of a method.




Example code