The following code works (when used in a standalone procedure)
[gvCreditMaster is correctly defined folder path]
The message info(“window name”) gives me CCMASTERFILE as expected since there is no Secret window. And it does make the correct selection, and reports back the correct selected info.
However, if I change to OpenSecret, the windowname message, when run from the standalone procedure is that of the original file not the one that was supposedly opened secret (and when I insert the code back into the procedure it originally came from, I get the name of either the procedure window or the test procedure window!). Furthermore, the CCMASTERFILE selection is not made and not reported back (apparently because it is in the wrong file).
When I try to manually open the CCMASTERFILE after trying to open it Secret, the file doesn’t open (or it is opening in a Secret Window).
I see over to the side my topic is similar to another one that suggests set activedatabase. PanX help says there’s no difference between Secret and Setactivedatabase, but this procedure was working fine before (sans messages) so I’m not sure what’s changed.
I’ll experiment with setactivedatabase. I hope I don’t have to change it everywhere.