StringVar Unit

Examples

delphi
procedure TScriptingForm.Button1Click(Sender: TObject);
var strings: StringList;
astr: string;
begin
    strings.Add('test1');
    strings.Add('test2');
    Caption := string(strings);     // Caption := strings.Text;
    RichEdit.Lines.AddStrings(strings); //pointer dereference
    end;  //strings freed here by compiler

Classes

NameDescription
TInterfacedStringList

Records

NameDescription
StringList