- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
passing variables into subscript
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-23-2009 01:03 PM
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?
Solved! Go to Solution.
Re: passing variables into subscript
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-23-2009 03:16 PM
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
https://lax-inapp04.inucn.com/incontrolHelp/BEGIN.
Hopefully I got all that right...
IT Operations Manager
Healthy Habits, LLC
http://malthusian-solutions.com
http://nirdvana.com
Re: passing variables into subscript
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-24-2009 10:25 AM


