info("windownumber")

The info(“windownumber”) function returns the unique ID number of the current window.


Description

This function returns the unique ID number of the current window. See Window ID Numbers to learn about this topic.

Here is an example that opens two databases, then brings the original window back to the top.

let wasWindowNumber = info("windownumber")
opendatabase "Contacts"
opendatabase "Payroll"
window wasWindowNumber

Note: In older versions of Panorama the program above would have been written by saving the window name, and using the window name as the parameter to the window statement. However this wasn’t always 100% reliable because it is possible for multiple windows to be open with the same name. The code above will always come back to the original window, even if there are other windows with the same name.


See Also


History

VersionStatusNotes
10.2NewNew in this version.