Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicCurrentControl question
Message
 
 
À
05/05/2011 17:50:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01509744
Message ID:
01509753
Vues:
55
>>>I have a command button in a grid I want to change the caption based on row data.
>>>I tried using DynamicCurrentControl to change the command button Caption using
>>>=IIF(tableData = "xyz", 'cmd1', 'cmd2')
>>>not working, what am I doing wrong?
>>>
>>>Thanks
>>I think you need quotes around the IIF, like if you would place your code in the init of the column
>>This.DynamicCurrentControl = "IIF(tableData = 'xyz','cmd1','cmd2')"
>
>Still not doing it. I guess I am going with 2 buttons. thanks.

See this message Re: Images in grid Thread #1130802 Message #1130913

In your case the code in the refresh will be

this.cmdButton.Caption = iif(TableData = 'xyz','cmd1','cmd2')
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform