Charmed Quark Systems, Ltd. - Support Forums and Community
String list in actions - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (http://www.charmedquark.com/vb_forum)
+-- Forum: General Discussion (http://www.charmedquark.com/vb_forum/forumdisplay.php?fid=3)
+--- Forum: CQC Support (http://www.charmedquark.com/vb_forum/forumdisplay.php?fid=9)
+--- Thread: String list in actions (/showthread.php?tid=10424)



String list in actions - znelbok - 11-06-2017

I am using the HTTP Get driver for action and using the option of passing in parameters in the url to take actions based on values.

?1=<string1>&2=<String2>&3=<String3>

The above will give me an action parameter 2 of <string1> <string2> <string3> - a string list of sorts.

How do I extract the strings into separate variables using the commands available for local variables in the action interface?

GetSubStr is an option, but the size of each of the strings will vary so I would need to dynamically assign the start index and length for the command.

Not sure how to do this


RE: String list in actions - Dean Roddey - 11-06-2017

Use GetNthToken to break out the values.


RE: String list in actions - znelbok - 11-06-2017

Thanks, GetNthToken is not listed in the help docs - another one to add to the list.


RE: String list in actions - Dean Roddey - 11-06-2017

It's an action command so it's documented under the /Reference/Actions section. It's under the System target. BTW, if you select an action in the action editor and hit F1, it'll take you to the documentation for that action.