Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus to itself?
Message
From
01/12/1999 22:56:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00297727
Message ID:
00297743
Views:
16
Hi Johnnas,

>I want my application to trap 0 or blank values before going to another object. I've tried to use the Valid Event but I do have a Cancel button. My cancel button wont activate until the 0 or blank object has a value. I need some suggestions.

So you don't want to leave a control is its value is blank, unless you hit "Cancel", then you don't care, right? Then :

Set the Cancel property of your cancel button to true, then in the valid put this:
if not lastkey() = 27 and empty(this.value)
    return 0
else
    return .T.
endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform