Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox missbehaving......
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00744385
Message ID:
00744520
Views:
7
To get this straight:

1.) You check (or uncheck) the checkbox and you can see that the underlying datasource (table.field) is correctly changed -- right?

2.) However, when you test for the value of table.field in the cmdButton.click() method, it is always .f. -- no matter what you did with the checkbox -- right?

It seems like you are doing it right and it doesn't seem that buffering is an issue. Maybe as a test use the checkbox.value property in the cmdButton method as the .t./.f. test as see what happens.

Kevin

Hi Kevin,
Good thought. I have the control source of the checkbox set to the field I am checking for. If I run the screen to set this flag with the check box, it works just fine. I wanted to see if the data was actually being changed so I did a browse on the table and the data was changed. My entry form is acting like it cant read the value from the table sysvars so the if check is allways using the false clause of my if, else endif block. Is there some other code that is getting triggered in a command button that I can't see or something? I do a similar check within the valid method of an Optiongroup and it works just fine.
Kevin Emmrich
www.jkt9000.com
Previous
Reply
Map
View

Click here to load this message in the networking platform