Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design/Doc Bug : CheckBox ignore Valid return
Message
From
19/04/2004 17:44:50
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
To
19/04/2004 11:11:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00896137
Message ID:
00896292
Views:
11
In the grand scheme of things, considering that a checkbox can only show a binary value, the "proper way" (IMO) to handle values in the checkbox, is not to allow focus (via .When) in the first place (in this case), based on the current context (which is apparently dictating what the value of the checkbox should be, and should set accordingly).

Your case is "not logical" (or user friendly), IMO.

Assuming, of course, that you are not triggering some process by a flick of the checkbox which will ultimately dictate the final (valid) value in the checkbox ... but since it is deterministic, should be a simple case for the program to set (and then possible disable) ... instead of letting the user toggle it ... until they get it right.

In either case, I don't see the problem.

>On a CheckBox, if you put a RETURN .F. or 0 into the Valid
>you can to leave the checkbox.
>
>The possible workaround is to put a NODEFAULT into the LostFocus,
>but this cut the code when you leave the form
>form.LostFocus
>form.Deactive
>are not fired.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform