Platform: Windows Server 2016, Laz 1.8.1, FPC 3.0.5
I have created a calculated TGraphicField in a TSQLQuery calle "IsActv".
I have a TImageList with two .png s in it... a green check and a red dot.
I have a string field that will contain either of the values 'GREEN_CHECK' or 'RED_DOT'.
How do I assign the green dot graphic in the TImageList to the calculated graphics field?
procedure TfrmDBTrigs.qryLstCalcFields(DataSet: TDataSet);
begin
if qryLstSHOW_IMAGE.AsString = 'GREEN_DOT' then
qryLstIsActv. ??? // <-- ImgLst. ?? items[0] ??
else
qryLstIsActv. ??? // <-- ImgLst. ?? items[1] ??
end;
What is the syntax that should replace the ??? characters?