Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicCurrentControl with CmdButton and Label in a Grid
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
DynamicCurrentControl with CmdButton and Label in a Grid
Divers
Thread ID:
00461758
Message ID:
00461758
Vues:
65
I have a grid that has a column with a command button control. When the command button is clicked another screen is displayed which shows more detail. The new screen is display only, no update is allowed. Sometimes there is not additional detail to display so I would like to vary the appearance of the command button in some way so that the client will not try to click on it to display an empty additional information screen.

I got the dynamicforecolor in the Coloum1.init to display different caption colors. But now I want to use the dynamicCurrentControl to display label1 (which has a blank caption) for no additional data and display the command1 for additional data. I added the label1 to the column but I can not get the dynamicCurrentControl expression correct. I get an "invalid expression, dynamicCurrentcontrol" when I execute.

this.dynamicCurrentControl = "iif(disb_hdr.disbddaamt = 0, Label1, Command1)"

What am I doing wrong with the dynamicCurrentControl? Also, does anyone have any other suggestions for how I can get a variable display in a column with a command button to indicate the presence or absence of additional data?

thanks

Brenda
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform