Rich S Posted July 24, 2023 Posted July 24, 2023 Howdy howdy... Quick question: Is it possible to assign a global variable as a name in the Perform Script command, e.g., Perform Script [Specified: By name: $$_Blivet ; Parameter: ] ? I don't see anything in the documentation ( https://fmhelp.filemaker.com/help/16/fmp/en/index.html#page/FMP_Help/perform-script.html ) about it and I couldn't get it to work as is or with using Evaluate ($$_Blivet) either, so is it "do-able" or no? Cheers, Rich
comment Posted July 24, 2023 Posted July 24, 2023 (edited) Hmmm... Your profile says version 19, yet you point to a help page for version 16. Perform Script by Name is an option available in version 17 and higher, so it's not clear where we stand. Also: 2 hours ago, WF7A said: I couldn't get it to work as is is not a good description of a problem. What exactly did happen? If there was an error message, please reproduce it verbatim. In general, if you are in version 17 or higher, and the $$_Blivet variable contains the name of the script (as string), you should be able to enter $$_Blivet into the calculation window and be done. The Evaluate() function has no role to play here. Do note that when using this option you are responsible for updating the process that sets the variable if you modify the script's name. Edited July 24, 2023 by comment
Rich S Posted July 24, 2023 Author Posted July 24, 2023 (edited) Actually, I'm running v20.1.2.204, but the newest version isn't available in this site's Account / Profile's pop-up menu. I grabbed the help menu link from v16 'cause I assumed Perform Script wouldn't have changed in the last handful of versions. (My mistake for assuming _anything_.) I'm beginning to think, though, that I may have to reinstall this version to see if there's a bug since when I pull up the available scripts, there isn't a Perform Script By Name choice. (See below.) I also sometimes can't access the "blue dot" on the right side of a command to enter parameters--I open and close the Show or Hide Steps Pane but to no avail; I have to quit FMP and reboot it for it to come back. I've also included the error message I get when I try running Perform Script with a global variable. Edited July 24, 2023 by WF7A
Ocean West Posted July 24, 2023 Posted July 24, 2023 Choose Perform Script you have the option By Name or From LIst
comment Posted July 24, 2023 Posted July 24, 2023 (edited) The error message suggests that the variable does not contain the correct script name. We don't see how you set the variable, nor a full list of your script names, so... Does the attached test file work for you? test.fmp12 Edited July 24, 2023 by comment
Recommended Posts
This topic is 556 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now