I am facing an issue with parameter passing between scripts.
My main requirement is to send the value for a “TypeText” command dynamically. The structure of my script is as below:
- Script 1 has a function that references some other functions in another script. hence in script 1, I am passing the command line value as:
params TypeString ... ... callFunction TypeString ... .. to callFunction TypeString ... ... callAnotherScriptFunction TypeString .. end to
Now in the second script I have declared the following:
params TypeString ... ... callAnotherScriptFunction TypeString .. TypeText TypeString ...
I think I am making some mistake somewhere, always the value against the TypeText is “TypeString” instead of the value that is sent from the CLI.
Note that the on the CLI, I am sending the parameters using -params 2000.
Is there a simpler method to this.
Thanks in advance.