Hi,
I'm just trying to use a case statement with string cases and I'm getting an error.
I'm using a nightly build version FPC Version 3.1.1 (2015/04/16) SVN Revision 48706.
Case sField Of
'Final_Invoice' :
sFilterString := sFilterString + sField + '=''' + comboFilterDropdown.KeyValue + '''' ;
end;
sField is declared as a string and the case elements are strings, but the error says that there is a mismatch, see attachment.
This discussion indicates that strings were allowed in V2.6.0, but unless I'm doing something very silly, I can't get it to compile.
Any help would be appreciated.
Thanks
Dave