Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5835 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I don't get why this script isn't working. Is there a better way?

Set Variable [$scriptP;Value:Get(ScriptParameter)]

I have several buttons that would use the same script other than a value unique to the button so I am trying to modularize my scripts and use a script parameter instead.

Posted

It should be working the way you have it. It's also totally redundant, since the script parameter is a variable too, and it's available directly throughout the entire scope of the script.

Posted

Thanks comment,

You're right, it is redundant. Maybe that's why it didn't take.

Instead I just set a temp field with the script parameter directly and it works fine.

Posted

Maybe that's why it didn't take.

No, it should still work. How have you determined that it's not?

And what's the point of setting a field to the same value? IOW, what exactly are you trying to do?

Posted (edited)

There is a point to what you are doing - if you use a $$variable.

$$variables can be carried through to other scripts without needing to pass them as a subsequent ScriptParameter.

Edited by Guest

This topic is 5835 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.