General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only