Siberdemon@aol.com wrote:
Well, anybody that can help, here's a newbie question about GPC and regular Pascal... I know what ordinal types are, but is it possible to use a case statement with a string type, and how... I need this for a M.U.D. I'm building in Pascal, it would really help... If you wish to help me, please email me, because I'm not a member of the list...
No, it's not possible. You'll have to use an if-then-else series which can be almost as compact as a case statement when written like this:
if s = 'foo' then ... else if s = 'bar then ... else ...
Frank