I still struggle with the differences between Pan6 file behavior and PanX file behavior.
Can someone explain the following simple code? (Executed in a separate database)
Local f1, w1 openfile "~/Data/Macros/AA Test" f1 = info("databasename") w1 = info("windowname") // message f1 makesecret setactivedatabase f1 closefile message info("files") RTN
When this code runs, BOTH the calling and the called files are listed in the message window. So apparently the closefile command didn’t close anything.
The only way I can figure this out is that PanX cannot CLOSEFILE a secret file! If so, is the reasoning that the secret file will automatically close and disappear when any other window opens? But then, what happens if one opens several secret windows? Do they all remain in memory until you return to the calling datasheet?