Organization: Netcom - Online Communication Services (408 241-9760 guest)
References: <al161926.715305119@academ01>
Lines: 14
In article <al161926.715305119@academ01> al161926@academ01.mty.itesm.mx (Jesus Barrera Ramos) writes:
>I'm having some troubles with files because I need to know if a file is open or not, is there a way to know if a file is OPEN or CLOSED, that's the way I see when a request a Watch to a file variable. Thanks in advance.
It is very simple: if your file is a textfile you check as follows:
if TextRec(myfile).mode <> fmClosed then...
if your file is typed or untyped you say:
if FileRec(myfile) <> fmClosed then ...
Check the TP 6.0 Programmer's Guide, page 141-148.