Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2006 Feb : Incompatible types error

www.cryer.info
Managed Newsgroup Archive

Incompatible types error

Subject:Incompatible types error
Posted by:"Robert Varga" (robert..@r-tech-ic.com)
Date:Sun, 26 Feb 2006 11:22:39

Hi to All,

Can someone tell why am I getting "Incompatible Types" error at SetLength in
the following procedure?

procedure TForm1.Push(var Buff: array of TPoint, X, Y: integer);
begin
    SetLength(Buff, Length(Buff) + 1);
    Buff[high(Buff)].X := X;
    Buff[high(Buff)].Y := Y;
end;

Best regards,

Robert

Replies:

www.cryer.info
Managed Newsgroup Archive