In Delphi I have used Array’s of records, e.g.
TYPE TTopic = Record
tfGoodun : Boolean;
fHeading : Single;
fBody : Single;
fTopic : Single;
sCode : String;
sHeading : String;
sNote : String;
sBody : Array of String;
end; //EndRECORD Ttopic
Topics: Array [0…100] of TTopic;
The length of each sBody is set to the size needed for each record before its Strings are set.
The data is set & accessed like:
Topics.sCode := ‘tex’;
s := Topics.sCode; //where s is a string var.
Elements docs suggest I might be able to do this with Record’s or Classes with Classes having advantages.
The doc example of Record is:
type Color = public record(IColor).
// Why is “(IColor)” present? Is it necessary?
The doc example of Class is:
type MyClass = public class(Object, IMyInterface)
//What is “(Object, iMyInterface)” for? Necessary? If so, what do I put for “Object” & “IMyInterface”?
Does Oxygene have the equivalent of Delphi’s TStrings with its methods?