Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form locking strategy to prevent data modification
Message
 
 
To
03/03/1998 16:57:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00082366
Message ID:
00082371
Views:
30
>>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.
>
>You can disable a combo the same way as other controls: Thisform.Combo1.Enabled=.f.

Hi Ed.

In my edit button, I was hoping to not have to reference every control on a form (to much code). Instead I was thinking of something like placing all controls in a pageframe and then enabling and disabling just the pageframe. Does that sound like a good plan? What do you do?

BTW it seems as though a combobox will disable if the pageframe is disabled that it is contained in.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform