Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return .f. still allows exit from field. Why?
Message
From
27/08/1999 14:29:49
 
 
To
27/08/1999 12:40:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00258304
Message ID:
00258558
Views:
9
>>>
>>>In other words the code is only failing when run from the subclassed textbox rather than a normal one with the same code in it.
>>>
>>>Does this give us a further clue?
>>>
>>>Harry
>>
>>So, the code is in the class. What do you put in the valid event in the instance on the form? Make sure there is absolutely nothing in the instance, not even white space. If that doesn't work, put a DODEFAULT() in the instance on the form.
>
>Actually, a DODEFAULT would cause it to always pass. You would need to
>
>IF !DODEFAULT()
>
> RETURN .F.
>ENDIF

My understanding of the problem was that the code wasn't running. But you are correct, as is George. I was just interested in making the code run. After that I would worry about the results.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform