Hi Michiel,
>I tried it, but I can't find the windowname. I tried the variable I use to put the createobject in and the name variable of the form. I also tried to retrieve the window name while running the Debugger but I cannot find it. Where do find the name for a window?
The window name is what's stored in the Name property, eg:
? WEXIST(Thisform.Name)
But you can also scan the Forms collection of _SCREEN:
For Each oForm in _Screen.Forms
If oForm.Name = "...."
Exit
Endif
Endfor
Christof
--
Christof