Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Value_assign not working with checkbox control
Message
De
19/01/2001 11:46:07
 
 
À
17/01/2001 12:16:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00464448
Message ID:
00465771
Vues:
20
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform