Testing Tools and Control Identification

JADE creates each control with an assigned identification number that is included in the creation description passed to Windows. Windows accepts only 16-bit identifiers; that is, 1 through 65,535. This control identifier is used by some testing tools to locate the control elements involved in the script processing via a Windows API call.

Call the Control class getControlWindowId method if you want to use the control identification number in your JADE code.

Although Windows requires only that child identifiers be unique for their direct parent, JADE creates the identifiers so that they are unique for the whole form. An identifier assigned to each control defined in the JADE Painter does not change when the painted form is altered unless the control is deleted and re-added; that is, you do not need to update testing scripts because the identifiers have changed.