Yes, I've read all the tutorials.
1. So a TPA (TpoinArray) is an array of x's and y's. Correct?
[code]TPA[0] := IntToPoint(10, 5);
2. That's how a Tpoint is set. I can set TPA[1..XXX] like this too?
3. How many points are there in the standard TPA? Are they automatically created? Do I need SetArrayLength?
4.Is High(TPA) the highest declared numbered array? For instance, if I declared TPA[5], would the High(TPA) be 5?Code:For I := 0 To High(TPA) Do // High = highest slot
5. In this small script from n3ss3s tutorial;how come i is never declared?
Code:Procedure TPAMouseExample; Var TPA: TPointArray; I, C: Integer; Begin SetArrayLength(TPA, 10); For I := 0 To High(TPA) Do // High = highest slot Begin TPA[i].x := (i + 1) * 10; TPA[i].y := (i + 1) * 20; End; // Now, we go through with it using mouse, watch... For C := 0 To High(TPA) Do Begin MoveMouse(TPA[c].x, TPA[c].y); Wait(250); End; End;![]()





Reply With Quote









.
.



