Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get rid of 'Add Record' dialog
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00412585
Message ID:
00413063
Views:
20
>That is from the navigation toolbar class that is placed on a form generated by the form wizard. You will need to modify cmdAdd.click(). To do this, save the navigation toolbar on your form to another class of your own. Then open wizstyle.vcx in the class browser and copy the code for the add button click event and paste it into your class.cmdAdd.click() event. Around line 170 you will see oAddRec.RunAddForm(), this sets the AddOption property of the object oAddRec. Comment that line out and set the property without using the form.
>
>ie.
>
>** oAddRec.RunAddForm()
>oAddRec.AddOption = OPT_ADD_PARENT
>
Well, I tried that, with no luck. It stopped asking for parent, child or both, but still askes for a value for the primary key. That is populated via a stored procedure, the user has no need to know about it. I tried stepping through, but an error routine seems to call to add record dialog.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform