-----------------------------------------------------
var
s:string;
begin
case s of //这里报错,好象是说类型不匹配,integer and string
'name':
begin
....
end;
'address':
begin
.....
end;
'telphone':
begin
.........
end;
end;
...全文
959打赏收藏
delphi新手的问题
小弟新手,下面这段代码总是报错不知为何?请各位大侠指教 ----------------------------------------------------- var s:string; begin case s of //这里报错,好象是说类型不匹配,integer and string 'name': begin .... end; 'address': begin ..... end; 'telphone': begin ......... end; end;