in Delphi TIPS :: You've probably tried providing a Case statement with string type selector expression, to find out that it only takes ordinal types (which string is not). Looking for a function which enables you to use the Case statement with string type variables?
Read the full article to learn how to create a Delphi CASE statement that Works with String Values!
Related:


There is already a function AnsiIndexText(const AText: String; const AValues: array [] of String):Integer;
how can i implement a code so that it will take the same action for two different cases, iused OR , but it seems that delphi does not recognises it (it compiles but it does not work) :
case myCase of
2 or 3:
//do the action
end;
any one ?
case mynumber of
1,2: