IsEmpty Method

Returns a Boolean value: TRUE, if the square of the rectangle is zero, otherwise FALSE.

Applies to objects: DRect

Syntax

[[Let] res = ] object.IsEmpty ()

The IsEmpty method syntax has these parts:

Part Description
res A Boolean type variable.
object A reference to an instance of the DRect object.

Remarks

Note, that if the right / bottom values in the DRect object are less than the left / top values, the square of the rectangle is non-zero.

Example

This example demonstrates using the IsEmpty method.

Dim MyObject as new DRect, res as Boolean
'set DRect object properties
MyObject.SetRect(30,100,30,500)
res = MyObject.IsEmpty() ' returns TRUE

 

See Also

DRect Object