Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form locking strategy to prevent data modification
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00082366
Message ID:
00082382
Views:
33
>Could anyone give any tips on or point me towards some info on a method of "locking" the controls on a form to prevent data from being changed.
>
>I would like to have an "edit" button that a user must push to then begin editting.
>
>Textboxes are very easy. I can drop them onto a pageframe and then enable and disable the pageframe. If combobox is on the pageframe, it will continue to be enabled.
>
>TIA.

In a manner similar to Mr Stowell's and Mr Booth's, I have a method that is in my form template class called .SetControlsEnabled(). It accepts two parameters, the first is a reference to a container object (form, page, container) and the second is either .T. or .F. depending on what I need the .Enabled property of the contained controls to be. The method loops through all the controls contained on whatever was passed in setting the .Enabled property.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform