TList, TStringList
Hi,
1. I've tried to use a TList putting doubles into its object, but RAP
doesn't allow this (Error: Incompatible types).
2. I've tried to use TList's Delete method but it didn't work (Error: Could
not compile program: xxxxx);
3. The Remove method seems to work but I didn't find out how
Is there any documentation on how these types are working?
Thank you
1. I've tried to use a TList putting doubles into its object, but RAP
doesn't allow this (Error: Incompatible types).
2. I've tried to use TList's Delete method but it didn't work (Error: Could
not compile program: xxxxx);
3. The Remove method seems to work but I didn't find out how
Is there any documentation on how these types are working?
Thank you
This discussion has been closed.
Comments
1. The TList is used to mantain a list of objects, not numbers. I would
suggest using a TStringList to store a list of doubles in RAP.
2. The TList.Delete method is fully supported in RAP. What is the error
you are receiving? In my testing with RB 9.01, the following code compiled
and ran correctly in RAP...
procedure DetailBeforePrint;
var
lList: TList;
begin
lList := TList.Create;
lList.Add(Variable1);
lList.Delete(0);
lList.Free;
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com