I
import
Unregistered / Unconfirmed
GUEST, unregistred user!
case结构不支持了符串检索,怎么办
do like this:
const
strArray : array [0..10] of string =(['str0', 'str1', 'str2', ...);
for i := 0 to 10 do
if strArray = str then
case i of
0: do str1 thing
1: do str1 thing
2:
...
end;
*****************
do like this:
const
strArray : array [0..10] of string =(['str0', 'str1', 'str2', ...);
for i := 0 to 10 do
if strArray = str then
case i of
0: do str1 thing
1: do str1 thing
2:
...
end;
*****************