Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Value_assign not working with checkbox control
Message
 
To
17/01/2001 12:16:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00464448
Message ID:
00464765
Views:
21
>>I can not the Value_assign method to work with a checkbox control. When I click on the checkbox the value of the checkbox toggles true and false visually, but the value_assign does not fire. I have put a breakpoint in there, no dice, not even SET STEP ON works. Any ideas why it isn't working? Can anyone reproduce this behaviour with VFP6 SP4?
>
>Yup...it don't work. So what I do in these situations is to set the ControlSource to a container property and create an Assign for that property. In the Assign I update the backend (real) ControlSource with a REPLACE.


Yes, and it also doesn't work in VFP 7.0
But instead of setting the controlsource to a container you can also set it to a custom property of the checkbox class. Then you can also set the controlsource in the class too, and the only thing you have to do when you use the class is placing code in the assign method of the newly created property
Previous
Reply
Map
View

Click here to load this message in the networking platform