Use the Fileinfo routine.

If fileinfo(fv,1) =   (if 0 not open, if 1 open)

This checks that is a valid file that is open.

This is good practice to test the file is open before opening, as reopening
the file clears all previous record locks held on that file by that user and
can cause fatal errors when using transaction boundaries

Regards

David Jordan
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to