in my table named Jobs, i have a field called jsts which monitor the status of each job. it has only three options ie pending, approved, rejected. i can display the table in a grid prefectly but i like to have each option highlighted with a bmp picture. i attach a command button in the related column for field jsts and my codes in the init pem of the grid are:-
if thisform.grid1.column1.text1.value='pending'
thisform.grid1.column1.command1.picture='yellow.bmp'
else
if thisform.grid1.column1.text1.value='approved'
thisform.grid1.column1.command1.picture='green.bmp'
else
uf thisform.grid1.column1.text1.value='rejected'
thisform.grid1.column1.command1.picture='red.bmp'
endif
endif
endif
but only grey boxes are displayed. the grid sparse is set to .f. and the command button controlsource is linked to the field jsts and its caption="".
please help. ta
ps i also have a setall with DynamicBackColor for the rows and wonder whether this is affecting the bmp displays.
if thisform.grid1.column1.text1.value='pending'
thisform.grid1.column1.command1.picture='yellow.bmp'
else
if thisform.grid1.column1.text1.value='approved'
thisform.grid1.column1.command1.picture='green.bmp'
else
uf thisform.grid1.column1.text1.value='rejected'
thisform.grid1.column1.command1.picture='red.bmp'
endif
endif
endif
but only grey boxes are displayed. the grid sparse is set to .f. and the command button controlsource is linked to the field jsts and its caption="".
please help. ta
ps i also have a setall with DynamicBackColor for the rows and wonder whether this is affecting the bmp displays.