H
hug
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TLayoutForm.InsertArraysIfPalse(var AnArray : Array of TFloatPoint;
AIndex,APosX,APosY:integer);
var
I:integer;
TempSize:integer;
begin
TempSize:=high(AnArray)+2;
Setlength(AnArray, TempSize);
for i := AIndex+1 to High(AnArray)-1 do
AnArray[i+1] := AnArray;
AnArray[AIndex].X := AposX / AK;
AnArray[AIndex].Y := AposY / AK;
end;
当程序编译到Setlength(AnArray, TempSize);出现错误如下:
[Error] LayoutFrm.pas(1075): Incompatible types
请帮忙,谢谢
AIndex,APosX,APosY:integer);
var
I:integer;
TempSize:integer;
begin
TempSize:=high(AnArray)+2;
Setlength(AnArray, TempSize);
for i := AIndex+1 to High(AnArray)-1 do
AnArray[i+1] := AnArray;
AnArray[AIndex].X := AposX / AK;
AnArray[AIndex].Y := AposY / AK;
end;
当程序编译到Setlength(AnArray, TempSize);出现错误如下:
[Error] LayoutFrm.pas(1075): Incompatible types
请帮忙,谢谢