>So there are several procedures which reference a FileName
>eg
>AssignFile(FileName, File);
>ReWrite(FileName);
>Write(FileName, 'Data');

>where FileName is of type TextFile and File is a string.

I've either missed you question entirely or:

  If Cond1 then
    File := 'FileOne'
  else
    File := 'FileTwo';
  assignfile(Filename, file);

Although the names of your variables are about faced.

medge.
---------------------------------------------------------------------------
    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"

Reply via email to