Delphi Stringlist in Record

Is it possible to have a string list in an entry? Eg

TImportStats = record
  ATotal:Integer;
  BTotal:String;
  AList:TStringist;
end;

and if I assume that I will need to create it before using the record?

+3
source share
4 answers

Although this is perfectly legal, it may be prudent to find another way. You indicate the question when you said:

I assume that I will need to create it before using the record

Not only that, but you need to find the right time to destroy it. If you forget to do this, there will be no errors, but your program will leak memory.

, . , /, Delphi.

, , . , , , .

+7

, . ALIST ( ), . , , . , , .

+3

TImportStats, StringList Code Central.

, , , .

0

, , - TStringList ATotal BTotal . , . .

0

All Articles