L
linzy98
Unregistered / Unconfirmed
GUEST, unregistred user!
var
i,j,k:integer;
s,s1,s2,s3:string;
if length(s)=10 then
begin
s1:=copy(s,3,2)+copy(s,6,2)+copy(s,9,2);
end
else if length(s)=8 then
begin
s1:=copy(s,3,2)+'0'+copy(s,6,1)+'0'+copy(s,8,1);
end
else
begin
if copy(s,7,1) = '-' then
s1:=copy(s,3,2)+'0'+copy(s,6,1)+copy(s,8,2)
else
s1:=copy(s,3,2)+copy(s,6,2)+'0'+copy(s,9,1);
end;
with Form1.table1 do
begin
last;
s2:=FieldbyName('sh').Asstring;
j:=strtoint(s2)+1;
end;
k:=strtoint(copy(s2,1,6));
if k<strtoint(s1) then
begin
Form2.Edit1.Text := s1+inttoStr(1);
Form2.Edit2.Text := s1+inttoStr(1);
end
else
if k=strtoint(s1) then
begin
Form6.Edit1.Text := inttostr(j);
Form6.Edit2.Text := inttostr(j);
end;
错误好像是:不是一个有效的整形值。is no a valid integer value.
i,j,k:integer;
s,s1,s2,s3:string;
if length(s)=10 then
begin
s1:=copy(s,3,2)+copy(s,6,2)+copy(s,9,2);
end
else if length(s)=8 then
begin
s1:=copy(s,3,2)+'0'+copy(s,6,1)+'0'+copy(s,8,1);
end
else
begin
if copy(s,7,1) = '-' then
s1:=copy(s,3,2)+'0'+copy(s,6,1)+copy(s,8,2)
else
s1:=copy(s,3,2)+copy(s,6,2)+'0'+copy(s,9,1);
end;
with Form1.table1 do
begin
last;
s2:=FieldbyName('sh').Asstring;
j:=strtoint(s2)+1;
end;
k:=strtoint(copy(s2,1,6));
if k<strtoint(s1) then
begin
Form2.Edit1.Text := s1+inttoStr(1);
Form2.Edit2.Text := s1+inttoStr(1);
end
else
if k=strtoint(s1) then
begin
Form6.Edit1.Text := inttostr(j);
Form6.Edit2.Text := inttostr(j);
end;
错误好像是:不是一个有效的整形值。is no a valid integer value.