I have saved the last window each user had open when he logged Out/Quit. When the app starts and the user logs in, I get the name of the last window he had open and I want to re-open that automatically.
sWindowToOpen = rsRecall.Field("LastWindow").StringValue
if sWindowToOpen <> "" then
sWindowToOpen.Open
Obviously the above code won’t work. So how do I cast a string variable as a window to be opened???
On the Mac this should be possible automatically with this window restore functionality that I kill on my computers. If you are on Windows I would try to use introspection. And ditch the implicit instance.