Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form For Adding Records - Prob w/ Clicking Elsewhere on
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00122835
Message ID:
00122870
Views:
21
Chuck,

You can make your life much easier if you move the code that has nothing to do with the combo out of the combo. Create a method fo the form named StartEdit, give it a parameter that is logical, .T. means start an edit and .F. means end the edit. In teh form's StartEdit you write all of theenabling and disabling code in a IF Parameter construct. You call the startEdit from the form's Init passing .F. so the form is put in non-editing mode. From the combo's when or valid you can call teh startedit and pass .T. so the form goes into editmode. From the Save and Cancel buttons, you again call the fomr's startedit passing .f. after the saving is done.

By approaching it this way you have one place where all of the enable/disable code resides. If it is working great, if not there is only one place to go.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform