Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox missbehaving......
Message
From
22/01/2003 14:13:16
 
 
To
22/01/2003 13:49:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00744385
Message ID:
00744404
Views:
7
>Greetings to all,
>I have been having a problem with a checkbox not returning the correct value. When checking if a logical field is either true or false, it seems that the value allways returned is .f.
>
>I have several checkboxes using a logical field with no problem. The code where I am checking for a true or false is in a Command Button. Is that a problem? I am using the following code.
>
>First a table calles sysvars has a field called Single_Screen
>
>Then I check to see if it is true or false:
>SELECT sysvars
>IF sysvars.Single_Screen note: I also tried IF (sysvars.Single_Screen = .T.)

Your code snippet doesn't seem to indicate where the checkbox is used. My guess would be that you want to replace sysvars.Single_screen with checkbox.value, and set the checkbox.controlsource to sysvars.single_screen.

Chris.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform