Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Value_assign not working with checkbox control
Message
From
19/01/2001 11:49:00
 
 
To
19/01/2001 11:46:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00464448
Message ID:
00465778
Views:
18
Well...

Interesting. I think I'm gonna have to enroll you in the "Koziol School of 'Bash It With a Big Hammer Until It Works Dammit' Application Engineering"


>>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.
>
>Thats more like a Valid than a Value_Assign, the way to do it would be puting something like:
>
>
if pemstatus(this, 'value_assign', 5)
>	this.value_assign(this.value)
>endif
>in the IA and ProgrammaticChange events, but why? Dunno. Here's my theroy on why using the UI to change a controls value doesn't fire the Value_Assign Method: because displaying the Control's value would have to go through the Value_Access method, and if their was a control source involved, I have the feeling it would get a little messy, if not slow.
>
>In any case, the Change events are apart of the base class so instance code can be added easily and provide all teh functionality you'll need.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform