jllavie
asked on
Problems with TCollection
I'm a new Delphi 2 user and I want rewrite some TPW programs in D2, but I don't know how the TCollection object works in D2.
My code in TPW is
Type
PData = ^TData
TData = Array[0..MaxPoint] of Real;
var
MyCurve : TCollection;
Data : PData;
begin
Data:=New(PData);
MyCurve:=New(PCollection,I nit(10,2)) ;
....
MyCurve^.Insert(Data);
....
end.
What is the code in Delphi to do the same thing ?
Thank's for your help.
--
Jean-Louis LAVIE
<jean-louis.lavie@esa5017. u-bordeaux 2.fr>
My code in TPW is
Type
PData = ^TData
TData = Array[0..MaxPoint] of Real;
var
MyCurve : TCollection;
Data : PData;
begin
Data:=New(PData);
MyCurve:=New(PCollection,I
....
MyCurve^.Insert(Data);
....
end.
What is the code in Delphi to do the same thing ?
Thank's for your help.
--
Jean-Louis LAVIE
<jean-louis.lavie@esa5017.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.