Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid SETALL command to conditionally output a BMP
Message
 
To
19/03/2004 11:37:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00887947
Message ID:
00887954
Views:
9
Works like a charm! Thanks for the quick reply.

Cipollini in the Tour this year?


>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform