只能用下面的判断
var
i:Integer;
b:Boolean;b:=false;
for i:=Low(ShowNum) to High(ShowNum) do
if TempNum=ShowNum(i) then
begin
b:=true;
break;
end;
if b then ....不知VB是从哪里复制的?
var
i:Integer;
b:Boolean;b:=false;
for i:=Low(ShowNum) to High(ShowNum) do
if TempNum=ShowNum(i) then
begin
b:=true;
break;
end;
if b then ....不知VB是从哪里复制的?
我在keypress里头就是用的 if key in [#$d,#$a] 判断键值。
只能像liang_z(千山一刀之忍者神龟)那样写查找函数了