I solved it by setting the array size to the maximum size I would need.
Then after loading in the needed points I set all the points beyond that
to the last needed point. It's not very elegant but it works.


> Whitehat wrote:
> > I want to draw a polygon using an array of points. The size of the
> > array can vary from 10 to 100. How do I get the Polygon procedure to
> > work with a variable size array?

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to