Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form locking strategy to prevent data modification
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00082366
Message ID:
00082382
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform