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

AVEVA™ Plant SCADA

FormWndHnd

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the window handle for the given form. The window handle may be used by 'C' programs and Plant SCADAWnd... functions. You should call this function only after the FormRead() function.

The window handle is not the same as the Plant SCADA window number and cannot be used with functions that expect the Plant SCADA window number (the Win... functions).

Syntax

FormWndHnd(hForm)

hForm:

The form handle, returned from the FormNew() function. The form handle identifies the table where data on the associated form is stored.

Return Value

The window handle if successful, otherwise a 0 is returned.

FormNew, FormRead, WndFind

Example

/* Create a form with a field */
hForm = FormNew("Ingredients", 40, 10, 1);
hField = FormPrompt(2,2,"Motor1:");
/* Display the form*/
FormRead(1);
/* Get the form's window number for future reference */
hWnd = FormWndHnd(hForm);

See Also

Form Functions

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