IsValidObject
(Available in 01 TS COM - TS_COM_DateTimeFromVariant)
Purpose
Test if the object is 'Valid'
Syntax
IF oSomeObject:IsValidObject
Description
This flag returns TRUE if the object has been inited and if the object is not invalidated. E.g. the return value is TRUE if it is safe to use the object.
Example
IF oSomeObject:IsValidObject
// Start using the object
...
ELSE
TSTrace Warning "!oSomeObject:IsValidObject"
END
Source
ACCESS IsValidObject AS LOGIC PASCAL CLASS TS_DateTimeFromVariant
LOCAL lIsValidObject AS LOGIC
TSTrace Enter
IF SELF:_SystemTime==NULL_PTR
TSTrace Warning NB Debug "SELF:_SystemTime==NULL_PTR"
lIsValidObject:=FALSE
ELSE
lIsValidObject:=SUPER:IsValidObject
END
TSTrace Leave
RETURN lIsValidObject