No, you cannot do it with a simple cast.
var
Newfile:string;
temp: TStringList;
begin
temp := TStringList.Create;
try
temp.Text := Newfile;
success := Burnfiles (temp);
finally
temp.Free;
end;
----- Original Message -----
From: "Alistair George" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Monday, July 21, 2003 7:32 PM
Subject: [DUG]: Casting
> Hi all.
> Is there a way to cast a string to a single item stringlist eg
> function BurnFiles(Fileslist: tstringlist): boolean;
>
> var Newfile:string;
>
> if Burnfiles(Newfile ?? as Tstringlist.text) then success:=true;
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/