Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

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.

ObjectByName, CreateObject, CreateControlObject

Example

hFont = _ObjectGetProperty(hControl, "Font");

IF ObjectIsValid(hFont) THEN

_ObjectSetProperty(hFont, "Size", 22)

END

See Also

ActiveX Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in