Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Modal Child Dialog
Message
From
16/05/2002 16:14:45
 
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00657702
Message ID:
00657757
Views:
37
Hi Mel:

The reason that all is grayed-out is becase at this stage, as your seek() isn't successfull, you are at end of file. If you now want to add a record for the non-existing zip, then you must call the datamanager's New() method and pass the name of the zip table.
             * I presume this code is in the datamanger.
             * You must call the new method before launching the child form.
             * It needs a record to work with <s>.
             this.New('zip')
             DO FORM ZipLook1 TO lStatus
             IF m.lStatus
                m.uValue = zip.zip
             ELSE
                 * You need the following too. If your user cancels out
                 * of the dialog, you don't want to leave a new empty
                 * record hanging around <s>
                 this.delete('zip')
                RETURN .F.
             ENDIF
>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.

HTH
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform