Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using lostfocus to validate?
Message
 
To
26/04/2000 17:01:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00363607
Message ID:
00363891
Views:
43
>Here's one that might get some Boos and Hisses from teh peanut gallery, but you can use MDOWN() to tell if it was a mouse click, then use sys(1270) to find what object the mouse is over. Depending on the name of the object (or better yet a custom property lNoValid) you can skip the valid().


Well, it works as advertised. However I have a question about timing. Have you used this before? I wonder if on a slow computer or one with a very fast mouse the mouse button might no longer be down by the time the code executes, in which case this solution fails. I put in a wait timeout .1 and sure enough, it failed because the mouse was no longer clicked when that section of code was finally reached.

So, have you used this reliably? Obviously I can write my validation code to process the MDOWN() function, but are there some conditions, such as a slow or overloaded PC or super fast mouse where it will not work?
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform