Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Modal Child Dialog
Message
 
 
To
16/05/2002 16:14:45
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00657702
Message ID:
00661799
Views:
29
Gary, perhaps you can help me with this. This is somwehat similar to a prior question I had, but is a little different.

I simply need to call this modal form, grap the data entered within a TxtTextBoxCustom control, and return that value to the calling Click().

I am calling a Modal Form from a Command button with the following in the Click of the button:
DO FORM filtord.scx TO cUser1
IF EMPTY(cUser1)
  WAIT WINDOW "cUser1 is empty"
ELSE
  WAIT WINDOW "cUser1 is NOT empty"
  * FOLLOWING LINE WILL GIVE AN ERROR, whereas I need it to give the
  * value entered in the Modal Form.
  WAIT WINDOW cUser1
ENDIF
The FiltOrd.scx Form is a Modal Form with one TxtTextBoxCustom field (named TxtOrdNo) and one OK/Cancel based on cntOKCancelCustom.

In the modal form, I have iReleaseOnClose = .T., and uValue to .T. I have also tried and set uValue = TxtOrdNo also, and still no success.

I am able to enter the value in the Modal form, and the Modal form is closed/release with no problem when I press OK, but I can't seem to figure out how to grab the value entered in the TxtTextBoxCustom field.

And one final question about this. Is:
 Do Form Whatever to cUser1
just as good to way to open a Modal form with a CodeMine command button found on a form, or shoud I be using something like:
 m.goStateManager.OpenModalForm('filtord.scx')
instead.

Any help is appreciated.

Mel Cummings



>>>Also, since I am using iReleaseOnClose = .T., I need to manually close this form.

By setting lReleaseOnClose = .T., the form will close itself. You don't have to manually close the form. That is the whole point of this setting.

You need to set uValue to .T., too.

Make sure you are using cntOKCancelCustom from cButton to save/cancel your child form.<<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform