Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Event does not fire when I click outside of the object
Message
From
20/07/1998 14:00:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Valid Event does not fire when I click outside of the object
Miscellaneous
Thread ID:
00119392
Message ID:
00119392
Views:
87
I have one add button with this code:
INSERT INTO mytable ...
Thisform.object.setfocus()

The valid event of this object that receives the focus contains:
IF EMPTY(This.value)
Messagebox('Field must not be empty',48,'Atention')
RETURN .F.
ENDIF

I execute the following sequence
1) Click outside of this object. The valid event doesn't fire.
2) Try to exit with the keyboard (tab key). The valid event fires.
3) Try to exit the object with mouse (again). The valid event fires.

Why in the first time I can exit the object with the mouse and in the
second I can't ?

TIA.
Antonio Carlos Kleinübing
Systems Analyst
Next
Reply
Map
View

Click here to load this message in the networking platform