Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restricting Access to a text box
Message
 
To
18/02/2002 16:36:59
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00621671
Message ID:
00621672
Views:
8
I normally set the enabled = .f. or readonly = .t. when a user can't access a control.

Since you have a field you could put in the controls refresh:
dodefault()
this.enabled = myTable.myField
hth

>I have been messing around with this one for 2 days now. On one of my forms, access to a particular control ( a text box ) is granted based on a logical field in a table. I have code in the gotfocus event that tests the state of the field and if it is not true, it sets the focus to another text box. This seems to work o.k. however, when the condition ( field value ) is false, the cursor disappears. The control button that is next in the tab order seems to have the focus, as I can see the button text outlined. It is proving to be very annoying. Perhaps I am going about restricting the access to the control the wrong way. I would welcome all ideas and am grateful for all assistance.
>
>Regards,
>Carmen
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform