Returns the handle of a window or control.
// In C
// Find out the handle of the IMAGE1 control
CALLWD("Handle,IMAGE1");
HandNum=WdInt
// In Pascal
(* Find out the handle of the IMAGE1 control *)
CALLWD('Handle,IMAGE1');
HandNum:=WdInt
// In VB
' Find out the handle of the IMAGE1 control
call CALLWD("Handle,IMAGE1")
HandNum=WdInt
Syntax
<Window name>: Character string
Name of the window whose handle is requested.
Finding out the handle of a control Hide the details
Handle(<Control name> [, <Subscript>])
<Control name>: Character string
Name of the control whose handle is requested.
<Subscript>: Character string (optional)
Subscript of the subscripted control whose handle is requested.
Remarks
- The handle number is returned in WdInt and in WdString.
- For the tables, no subscript can be specified.