mrpickle
2010-05-23 21:45:11
I posted this on Cohn's Tut thread… but I'm kinda rushy for an answer. xD
I'm messing around with Types. Wondering, how do I use a type as an integer?
Type
SRecord = record
MoveCoordinateX : array [1..4]of Integer;
MoveCoordinateY : array [1..4]of Integer;
end;
Movement:Array of SRecord;
Procedure Example (x,y:integer)
begin
DoSomething(x,y,blah,blah,blah);
end;
begin
With Movement[0] do
begin
MoveCoordinateX[0] := 1 ;
MoveCoordinateY[0] := 3 ;
end;
///
Example(SRecord.MoveCoordinateX[0],SRecord.MoveCoordinateX[0]); // How to make this part work?
/// I get class type error.
end.