Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Restricions/Permissions
Message
 
 
To
01/12/2000 10:22:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00448051
Message ID:
00448059
Views:
9
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform