ObjectIsValid
- Last UpdatedFeb 28, 2024
- 1 minute read
Determines if the given handle for an object is a valid handle. This function is useful for programmatically checking that an object was returned for a call.
Syntax
INT ObjectIsValid(hObject)
hObject:
The handle for the object (as returned by the ObjectByName function).
Return Value
0 if the handle is not valid, otherwise 1.
Related Functions
ObjectByName, CreateObject, CreateControlObject
Example
hFont = _ObjectGetProperty(hControl, "Font");
IF ObjectIsValid(hFont) THEN
_ObjectSetProperty(hFont, "Size", 22)
END