In Pan 6, how do I determine if a file (other than the active file) is open?
michel
In Pan 6, how do I determine if a file (other than the active file) is open?
michel
I’m assuming that the variable filename
contains the name of the database that you are interested in.
arraycontains(info("files"),filename,cr())
This will also work in Panorama X.
info("files")
INFO("FILES")
Description: The info("files") function builds a carriage return
separated text array containing a list of
all the currently open database files.
Examples: The example below uses info("files") to check to see if
the Price List database is open. If
not, the procedure opens the database.
if 0 = arraysearch(info("files"),"Price List",1,¶)
openfile "Price List"
endif
See