![]() |
||||||||
| |
||||||||
Error: Window '[xxx]yyy' is not uniqueThis message appears whenever more than one window on the current screen matches the tag specified for the control you were trying to access. 4Test Solution - If there are no wildcard characters (* or ?) in the tag yyy then there are two windows with the exact same tag. You have to decide if this situation is expected. If the script has inadvertantly brought up a second copy of your application you can get these error messages. If you want to cope with multiple copies of such windows, just add '[1]' after the yyy portion of the tag in the window declaration. Define a second window just like the first except use '[2]' after the yyy portion of the tag. For example: window DialogBox MyDialog tag "My title"becomes: window DialogBox MyDialog tag "My title[1]" ... window DialogBox MyDialog2 tag "My title[2]" In situations involving Moveable (such as MainWin or ChildWin) windows the [1] suffix does not always address the same window. If the window is active, [1] is the appropriate suffix. Make the [2] window active, and it becomes [1]. If the tag yyy has wildcard characters there may be multiple windows that are different yet they match your wildcard selection criteria. In this case you should remove the wildcard characters or at least add enough non-wildcard characters such that the new tag does not match multiple windows. An extreme example of this is to try to define a MainWin with a tag of '*' This will match the main window for the first application that is started. If a second application is started you will get this error message as soon as you attempt to reference any window for the first application. You can find the window declaration with the yyy tag value best by using the call stack associated with the error. The top line of code in the call stack will reference the window with the problem.
|
||||||||
|
Send
questions or comments about this web site to: webmaster@TestMap.com |
||||||||