I suspect any method whereby you attempt to get an Id for an object (window, form etc) will run into the same problem - i.e. to get the Id you have to specify the object name.
The real question is how FIND_FORM, GET_WINDOW_PROPERTY etc work, when looking for the named object do they always go through the internal form/window list in order, or do they go for the active object first.
If they go for the active object first you could use FIND_FORM or whatever to get the form Id via the appropriate trigger on form start up.
If they go through the objects in the same order every time you will always get the same Id being returned - in this case you could work round it by using the NEXT_FORM command to cycle through the open forms, and interrogate each one until you find the form you need - this is rather in-efficient but, off the top of my head, I can't think of another way round you problem.
Main Topics
Browse All Topics





by: yesnaudPosted on 1998-05-06 at 04:54:28ID: 1080777
Not quite sure if this will answer your question but, you could save in text file the time when the instance has been launched, or save a text file with a different number as filename using a sequence number. Otherwise you can get the windowhandle using get_window_property
Hope this help.
Yoann.