Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing Combo To Fire Valid When Losing Focus
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Forcing Combo To Fire Valid When Losing Focus
Miscellaneous
Thread ID:
00418762
Message ID:
00418762
Views:
46
After programming with VFP since 1995, I have finaly decided to solve the problem of a combo box not firing the valid event when it loses focus. I have tested the following and it appears to work fine. Before I add this to my combo baseclass anyone have any comments?
Combo LostFocus:
IF THIS.VALID() = .F.
	THIS.SETFOCUS()
	NODEFAULT
ENDIF

Combo Valid:
IF oDevice.ValidateField(device.id,'fk_vendor',this.value) = .F.
	WAIT WINDOW "Invalid data" NOWAIT
	RETURN .F.
ENDIF
Next
Reply
Map
View

Click here to load this message in the networking platform