Say i have a string
'SomeName'
and wanted the values return in a case statement. Can this bedone? Can strings be used in a case statement like so
Case 'SomeName' of
'bobby' : 2;
'tommy' :19;
'somename' :4000;
else
showmessage('Error');
end;
In Jcl library you have the StrIndex function
StrIndex(Index, Array Of String)which works like this:Delphi (independent of JCL) provides the same functionality through e.g.
or