Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function StringToCaseSelect(Selector : string;
CaseList: array of string): Integer;
var cnt: integer;
begin
Result:=-1;
for cnt:=0 to Length(CaseList)-1 do
begin
if CompareText(Selector, CaseList[cnt]) = 0 then
begin
Result:=cnt;
Break;
end;
end;
end;
case StringToCaseSelect(edit1.Text,['stringtocompareagainst1','stringtocompareagainst2','stringtocompareagainst3']) of
0:ShowMessage('You picked string1') ;
1:ShowMessage('You picked string2') ;
2:ShowMessage('You picked string3') ;
end;
}