Startbeitrag von Piet van Zantenam 26.02.2010 13:17
Hi,
I have the same child window open several times using an alias.
If I close one of them using the given alias, all windows are closed.
I'm using this syntax:
OpenChild("wc_20040166=win_OuderRooster,157,1332")
OpenChild("wc_20040130=win_OuderRooster,265,1332")
If I do a Close("wc_20040166") both windows are closed.
Is this normal behaviour or am I doing something wrong?
Regards,
Piet
I have the same child window open several times using an alias.
If I close one of them using the given alias, all windows are closed.
I'm using this syntax:
OpenChild("wc_20040166=win_OuderRooster,157,1332")
OpenChild("wc_20040130=win_OuderRooster,265,1332")
If I do a Close("wc_20040166") both windows are closed.
Is this normal behaviour or am I doing something wrong?
Regards,
Piet
Are you using ..Alias to set your Alias name? Not used it myself, but the Help has a decent page of info.
von DarrenF - am 26.02.2010 15:23
I can't find your example in the Help, only the syntax I use is given in the OpenChild section. Anyway, I don't think the syntax matters. Using the windows alias works for all operations, except the closing, as closing one child will close all the child windows.
Regards.,
Piet
von Piet van Zanten - am 01.03.2010 09:40
Re: [WD14] Closing a window using alias (understood)
I understand what's happening now. I open the child windows in a class method.
I now realize that this method is called from the previous child, so each new window is a child of the previous one and therefore if I close the first one, they will all close.
Regards,
Piet
von Piet van Zanten - am 01.03.2010 14:06