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

A question regarding the scope of script parameters.


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

Recommended Posts

Posted

I've created a layout with a very simple button, where I've attached a script and a parameter to it. The script calls a subscript, can I pass the parameter to this? At present I haven't managed to figure it out, but im hoping they can be passed to different files unlike variables.

Jalz

Posted

Script parameters must be explicitly passed to sub-scripts. You can pass the same script parameters to a script's sub-scripts by passing get(scriptparameter) as the parameter to each subscript.

Posted

Thanks Ender,

I understand what your saying, i.e. to use the Get (ScriptParameter), but I still cant manage it...I've attached a very simple file, 1 button which has the parameter "print" attached to it. I've got two scripts, the Get (ScriptParameter) works in the first script, but it doesn't work in the second script. Ender or someone else point me in the irght direct with an example?

Cheers Jalz

parameter.zip

Posted

figured it out.

Cheers Ender....just needed to look hard enough

This topic is 6990 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.