Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate Method
Message
 
To
20/12/1996 14:55:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00015679
Message ID:
00015734
Views:
40
>> there is nothig wrong with the valid event it only fires once -
>>one of the msgbox you see is VFP default reaction to a return .f. in the valid event (u can bypass it with return 0)
>>basically it seems though, that the valid event is there as a legacy from the valid snippet in previous versions
>>
>>Arnon
>
>I have moved the code to the from the Valid to the LostFocus event. Now, however, I can't get the focus back to the control when the user enters a non-existent inventory #. SetFocus doesn't work; neither does Return(1). No matter what I do, the focus shifts to the next control, so that I have to click back to the item # control to re-input the item #. I even tried, in desperation, to TABLEREVERT the record and add another new one. Focus is STILL on the next control. I am, BTW, working with columns in a grid. HELP!
>
>John

This is where you put Nodefault before the Setfocus to override the tab order...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform