Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
True or false in checkboxes
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00029396
Message ID:
00029455
Views:
24
>>>>well its possible that when i click on a checkbox my controlsource isnt updated when the click event started?
>>>>
>>>>i have the controlsource updated when checkbox events are finished... :( exist ne way to fix this?
>>>>
>>>>thnks
>>>
>>>You can't store a logical field as the controlsource for a checkbox. Value for checkbox is 0,1 or 2. Use code in the valid method to update the field based on the results of the value
>>>
>>>0= False
>>>1= True
>>>2= Null
>>
>>Actually, you can store a logical field as the controlsource for a checkbox. You just need to set the value of the checkbox to .f. or .t. to begin with.
>
>What about checkboxes in grids? Mine seem to update the table properly, and I have not assigned values to them. The Column.Bound = .T. and the controlsource for column and checkbox is a logical field. Of course, I do have my "crud in the grid" problem...

you can use logicals -- just can't use the gray option...
Previous
Reply
Map
View

Click here to load this message in the networking platform