I suspect that during their initial development, they used the old Turbo
Pascal syntax - Close. As this is not a unique procedure name, they got into
the (good) habit of prefixing it with the unit name.
The procedure was renamed to CloseFile to make it clearer what it did (just
as Assign was renamed to AssignFile).
Unlike class methods which have fairly clear scope and naming, procedures
that sit in units are prone to scope and naming conflicts, so its not a bad
idea to be very clear which you mean.
Regards,
Andrew Cooke.
> -----Original Message-----
> From: Alex Kouznetsov [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 09, 1999 7:34 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: CloseFile when printing
>
> Hi
>
> Why is it, when giving an example of how to use AssignPrn procedure,
> Borland never uses CloseFile but always System.CloseFile ? I could not
> find any other CloseFile anywhere apart in system unit. This seems to be
> in all versions of Delphi.
>
> Alex
>
>
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz