Page 1 of 1

PostPosted: Sat Apr 09, 2005 2:25 am
by vh1too
Tis may sound like a newbee question but, How can i pass a return value from a dialog to the calling event hanler function? I have a field value that i want to populate with the return value of a dialog but i can't figure out how to do it?

PostPosted: Sat Apr 09, 2005 1:02 pm
by jstadolnik
Use FgetText() and FsetText() to get/set the contents of a field.

-Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sun Apr 10, 2005 12:30 am
by vh1too
Tried that. It doesn't work inside the dialog's event loop.It works inside the main form's event loop.

PostPosted: Sun Apr 10, 2005 12:48 am
by jstadolnik
Assuming that your'e using the Fctl POPDIALOG command, just call FgetText on the field after POPDIALOG finishes.

-Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm