Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Restricions/Permissions
Message
 
 
À
01/12/2000 10:22:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00448051
Message ID:
00448059
Vues:
17
>If an application was to enable/disable certain Textboxes in forms depending on Userlevel access in the application, would it be better to include the code in the Textbox REFRESH(), or hold all the code in a central procedure for all forms to access centrally?
>
>Any ideas?
>Thanks
>Kev

I usually have this code in the Refresh of my baseclass. The code checks a similar UserLevelAccess property of my global application object. I also use SDT to extend field properties of all my tables. One property I added was ReadOnly. I then call an SDT method [also in the Refresh of my baseclasses] to retrieve the ReadOnly value of This.ControlSource [if not empty]. I then set the Enabled property of the control based on that return value.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform