Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Control Source programmatically
Message
De
09/10/2002 08:27:44
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00709192
Message ID:
00709194
Vues:
16
>Hi
>I am setting control source for a grid row as follows:
>Thisform.MyGrid.Mycolumn.ControlSource = Myfile.Balance
>
>This works fine.
>
>But If I want to show a description as in:
>Thisform.MyGrid.Mycolumn.ControlSource = Iif(Seek(Myfile.Code,'KMA'),Kma.Description,' ')
>
>I get a --> Data source for this object must be a variable reference.
>
>
>Anybody know if I can put an indirect refrence into conmtrol source programatically.
>
>Regards,
>
>gerard
Do like this
Thisform.MyGrid.Mycolumn.ControlSource = "Myfile.Balance"
MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform