procedure..................
var
value:string
begin
value:=cmb_lookup.text;
case value of
'大班':showmessage('a');
'中班': showmessage('b');
end;
end; 为什么上面定义成字符串型是不行的:error:ordinal type repuired而定义成整形就可以了:
procedure..................
var
value:integer;
begin
case value of
0:showmessage('a');
1: showmessage('b');
end;
end; 怎么解决????谢谢,在线等。
var
value:string
begin
value:=cmb_lookup.text;
case value of
'大班':showmessage('a');
'中班': showmessage('b');
end;
end; 为什么上面定义成字符串型是不行的:error:ordinal type repuired而定义成整形就可以了:
procedure..................
var
value:integer;
begin
case value of
0:showmessage('a');
1: showmessage('b');
end;
end; 怎么解决????谢谢,在线等。
begin
case cmb_lookup.ItemIndex of
0:showmessage('a');
1: showmessage('b');
end;
end;