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

AVEVA™ Plant SCADA

WinGetFirstChild

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the window number of the first child of a parent window. This number can be used with other functions to control the window.

Syntax

WinGetFirstChild(Window)

Window:

The window number of the parent window.

Return Value

The window number associated with the first child of the specified parent window. If a child window does not exist, –1 is returned.

WinGetNextChild, WinNew, WinNewAt, WinNumber

Example

...

// Get the active window number

iParentWindowNum = WinNumber();

iFirstChild = WinGetFirstChild(iParentWindowNum);

iSecondChild = WinGetNextChild(iFirstChild);

iThirdChild = WinGetNextChild(iSecondChild);

...

See Also

Window Functions

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