>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"
- [DUG]: Referencing variable TextFile names Mark Howard
- RE: [DUG]: Referencing variable TextFile names Sergei Stenkov
- Re: [DUG]: Referencing variable TextFile n... Mark Howard
- Re: [DUG]: Referencing variable TextFi... Steve Peacocke
- RE: [DUG]: Referencing variable Te... Patrick Dunford
- Re: [DUG]: Referencing variab... Neven MacEwan
- RE: [DUG]: Referencing va... Patrick Dunford
- Re: [DUG]: Referencing variable Te... Mark Howard
- RE: [DUG]: Referencing variable TextFile names Patrick Dunford
- Re: [DUG]: Referencing variable TextFile names Edge, Martin (SSABSA)
- Re: [DUG]: Referencing variable TextFile n... Mark Howard
- Re: [DUG]: Referencing variable TextFi... Nello Sestini
- Re: [DUG]: Referencing variable TextFi... Mark Howard
- Re: [DUG]: Referencing variable Te... Steve Peacocke
- RE: [DUG]: Referencing variable Te... Damien Long
- [DUG]: Paths and UNCs Rohit Gupta
- Re: [DUG]: Paths and UNCs [EMAIL PROTECTED]
- Re: [DUG]: Paths and ... Rohit Gupta
- Re: [DUG]: Paths and ... Dave
- Re: [DUG]: Referencing variable Te... Dave
