Window switching
William Conable
conable.1 at osu.edu
Tue Mar 11 13:34:18 PDT 2008
Here's my procedure:
global WasWindow
WasWindow= info("WindowName")
SuperAlert "[some text]", {title="Last Chance to back out!"
buttons="I'm sure:100;I want to go back:120"}
If info("DialogTrigger") = "I want to go back"
SuperAlert "[some text]",{buttons="OK:60" title="No problem."}
stop
endif
If info("DialogTrigger")="I'm sure"
ServerUpdate "off"
GoSheet; I had to do this because if the data sheet wasn't open it
wouldn't do the fill
Field «Letters going out»
FormulaFill («Letters going out»+datepattern(today(),"mm/dd/yy")+"
"+«Letter type»+"|")
OpenForm WasWindow;*****
WasWindow=""
ServerUpdate "on"
Synchronize
SuperAlert "I've recorded that you sent this set of letters. Now go
ahead and print the envelopes.",{title="Next Step" buttons="OK"}
endif
**** here's my problem. At this point the program stops and tells me
there's no such form in the DB: but there is. (If I use Window
WasWindow, it tells me there's no such window.) When I debug, the
variable is correctly assigned. When I check in the Variables Wizard,
the variable WasWindow has the value of the window I want to go back
to. But somehow the program isn't getting it.
What don't I get? It seems to me I've done this before successfully. Of
course if I could avoid all that window-switching it would be great
too...
Thanks,
Bill Conable
More information about the Qna
mailing list