Reply
Consistent Contributor
eleazar
Posts: 9
Registered: 03-03-2009
0

passing variables into subscript

Hi, is there a way to pass a variable into a sub script. For example, if I was programming I might say something like: function test(var1 = "hi") which meant that I have a variable called var1 = hi inside the function. 

 

Is this possible with inTouch?

Consistent Contributor
logos
Posts: 89
Registered: 12-05-2008

Re: passing variables into subscript

Yup, you can pass parameters in using RUNSUB.  In the properties you'll see a param count to set the # of parameters (up to nine), and P1-Pn parameters for you to fill in.  You can use variables in the param values, like {iCount}.

 

In your subscript you just set the param count in the BEGIN to the same as in the RUNSUB.  You can ass variable names for P1-Pn here, or just leave them blank to use P1-Pn.

 

https://lax-inapp04.inucn.com/incontrolHelp/RUNSUB.htm

https://lax-inapp04.inucn.com/incontrolHelp/BEGIN.htm

 

Hopefully I got all that right...

Tyler Style
IT Operations Manager
Healthy Habits, LLC

http://malthusian-solutions.com
http://nirdvana.com
Consistent Contributor
eleazar
Posts: 9
Registered: 03-03-2009
0

Re: passing variables into subscript

Awesome.. thanks so much.