joffre
13 years agoRegular Contributor
Check if window exists
How can I check if a window exists or not?
The window's full name is:
It may or may not be shown, depending on the options that I selected before.
If I do like this...
...and the window isn't shown, an error will return to Log beucase the window wasn't found.
How can I check if the window exists not receiving the "window does not exist" error?
The window's full name is:
Sys.Process("FPw5").Window("#32770", "FPW : Mensagem", 1)It may or may not be shown, depending on the options that I selected before.
If I do like this...
wdwMsg = Sys.Process("FPw5").Window("#32770", "FPW : Mensagem", 1);
if (wdwMsg.Exists) {
MessageDlg("An error happenned. Check Logs for more information!", mtError, mbOK, 0);
Log.Error(wdwMsg.WndCaption);
Runner.Stop();
}...and the window isn't shown, an error will return to Log beucase the window wasn't found.
How can I check if the window exists not receiving the "window does not exist" error?