Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid SETALL command to conditionally output a BMP
Message
De
19/03/2004 11:37:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00887947
Message ID:
00887948
Vues:
10
This message has been marked as the solution to the initial question of the thread.

In the first column of a grid i have a CommandButton. For each row in the grid, I would like to either:

1) set the picture clause to the image if a dollar amt present or leave blank

OR

2) set the column1 CurrentControl value to a textbox (instead of the commandbutton) if no dollar amt.

But i cant get the syntax right. Can grid's do this on a row by row basis?

Something like:

.column1.CmdDollar.picture = 'IIF( v_jobtasks.expinv > 0,"DOLLAR.BMP","" )'
.column1.sparse = .F.
* .column1.bound = .F. this is a best choice
.column1.CmdDollar.picture = "DOLLAR.BMP"
.column1.dynamiccurrentControl = 'IIF( v_jobtasks.expinv > 0,"commandName","textboxName" )'
Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform