Hi all, I've been writing some code (logic) for serial comms, and ran into a problem with PICED that tells me it can't compile a case statement using a string. I tried the sample code in the Help file, and it wouldn't work either! [code]{var} Operator: string; number1: integer; number2: integer; result: integer; case Operator of '*' : result:= number1 * number2; '/' : result:= number1 / number2; '+' : result:= number1 + number2; '-' : result:= number1 - number2; end;[/code] and get [code]Error C144 at line 592:17 - Illegal type of expression [COLOR="RoyalBlue"] for line [/COLOR][COLOR="Navy"]case Operator of[/COLOR][/code] and interestingly [code]Error C129 at line 594:38 - Type conflict of operands [COLOR="RoyalBlue"]for line [/COLOR][COLOR="Navy"]'/' : result:= number1 / number2;[/COLOR][/code] I have tried an equivalent code structure where Operator is an integer and there is no problem. Why just with strings and why wouldn't a published example work! Anyone else run into this? Or am I doing something dumb....