Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OptionGroup with logical ControlSource
Message
De
31/03/1998 14:41:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00088474
Message ID:
00088477
Vues:
24
>I am trying to setup a OptionGroup that relates to logical field in the ControlSource. When I set the ControlSource to the logical field and run the form, I get the following error:"Error with 'Field Name' Value: Data type mismatch. Unbinding object." Can somebody help me setup the OptionGroup to accept a logical field.

You should unbind the optiongroup (empty ControlSource) and add code to e.g. to Form.Refresh method:
This.Optiongroup1.Value=IIF(table1.logfield=.t.,1,2)
and to OptionGroup.InteractiveChange event
Replace table1.logfield With IIF(this.value=1,.t.,.f.)
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform