Hi There
I am building a form for a purchase orders system. I was thinking of adding a picture a grid to show whether the order was completed or not. I tried just pasteing the image into the grid and using
IF ALLTRIM(SORDhead.STATUS) = "Open"
thisform.grid1.column8.image1.picture = "open.bmp"
else
thisform.grid1.column8.image1.picture = "cancel.bmp"
endif
in the afterrowchange method but this has not worked Any ideas
Thanks
steps:
- Add to the column8 two image controls with these status names:
STATUS value for open : "Open"
STATUS value for Cancel : "Cancel"
- set thisform.grid1.column8.Open.picture = "Open.bmp"
- set thisform.grid1.column8.Cancel.picture = "Cancel.bmp"
- set column8.Bound = .F.
- set column8.Sparse = .F.
- on the Property Sheet set for Column8:
DynamicCurrentControl = ALLTRIM(SORDhead.STATUS)
- run
Fabio