Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid vs. LostFocus
Message
 
To
09/04/2003 09:50:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00775350
Message ID:
00775485
Views:
15
>I would like to add to what you have received in replies so far (which are all really great). There may be times (not a standard) when you will need to setfocus to a specific control based upon the value entered in the current control. While you cannot setfocus from the valid you can from the lostfocus.


Tracy;

I may be incorrect (I have not tried this for about 5 years) but I think you can set focus from a Valid by setting Return -1, etc. If I recall, we did that on one project. I think I have also seen it done with a framework I use.

An exception like the above is a kluge to me. I think it is better to "obey the rules" and not worry about bandages. :)

Tom


>
>
>>I have seen some interesting code lately where instead of code in the valid method; the programmer is using lost focus.
>>
>>What are the advantages/disadvantages of such methodology? What is preferred? Why?
>>
>>Thanks
>>
>>Ric
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform