I am trying to display one of two images in a grid where the value in the field is either 0 or 1
I have an image control within a container
The image control does not display an image. I know there are other ways of doing this, but I would like to solve this one
I have an image control within a container
The image control does not display an image. I know there are other ways of doing this, but I would like to solve this one
Code:
WITH oGrid.frame.grid1.column1
.AddObject("cont1","mailitem")
.CurrentControl="cont1"
.cont1.resize && Centre the image control
.Sparse=.f.
.controlsource='IIF(cTemp.nRead =0,.cont1.image1.picture = "..\graphics\Images\email.png",;
.cont1.image1.picture ="..\graphics\Images\email_open.png")'
ENDWITH