Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to retrieve data from dialog box

2 views
Skip to first unread message

Steffen Gast

unread,
Apr 4, 1995, 3:00:00 AM4/4/95
to
Hi,
In my script I call a proc, which creates a dialog box (toplevel window)
with buttons. Now -surprise- I want to record the choice. Do I have a chance
to retrieve data as return values from the proc or is it only possible to
get my values with the use of global variables?
Thanks in advance!

--
Steffen Gast
Email: sg...@htwm.de
WWW: http://www.htwm.de/~sgast

Mark D Zollinger

unread,
Apr 5, 1995, 3:00:00 AM4/5/95
to
>
> In my script I call a proc, which creates a dialog box (toplevel window)
> with buttons. Now -surprise- I want to record the choice. Do I have a chance
> to retrieve data as return values from the proc or is it only possible to
> get my values with the use of global variables?
> Thanks in advance!
>

Just using the return value from the proc usually
works fine. Assuming a proc named myproc that
starts up a modal dialog, you might do this:

set returnvar [myproc arg1 arg2]

Which would set returnvar to the return value
from the dialog.

Best of luck,

Mark D Zollinger
mzoll...@esri.com


0 new messages