I’m near certain I’m doing something wrong, it’s probably in the docs’ fine print but for the life of me I can’t figure it out.
I want to invoke ThisDocument.getURL() from within a Base form to get the current app’s full filepath so that I can then fetch an image in an underlying folder. Seems a fairly standard call, like:
strFilepath = ThisDocument.getURL()
But it returns nothing.
I created a macro with just that same statement within a msgbox call (just as troubleshooting), and if I call the macro from Base main window then it returns the full filepath as expected (as a URL). But if I call the macro from within a form (event), it returns nothing.
What am I missing?
(I feel like such a noob…)