Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping focus w/out valid event
Message
 
To
03/02/2005 15:40:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00983625
Message ID:
00983657
Views:
14
It's important to note that the users should be allowed to edit the textbox if: the following conditions:
-textbox is blank
- textbox has cordate value in it
- not be allowed to edit if value other than cordate.
-a fine mess


>In valid:
>Return !(this.Value<>cordate AND LEN(ALLTRIM(this.Value)) =5)
>
>>I have tried this code in a textbox's interactive change event but focus goes to the next textbox :-( Reason I am going this route is because if the texbox is empty, user is allowed to modify.
>>
>>IF this.Value<>cordate AND LEN(ALLTRIM(this.Value)) =5
>>this.setfocus
>>EndiF
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Reply
Map
View

Click here to load this message in the networking platform