Page 1 of 1

Parse a string

Posted: Thu Sep 07, 2006 12:59 pm
by tomd
I would like to parse a string that could contain 4 pieces of information that I would like to use in variables. The parse string drag drop script command will allow me to get 2 pieces. Is there a way to LOOP through a string and grab each piece.

example string:

5001:409@5006:109@5012:009@5024:090

I would like to use the 4 pieces in seperate variables. I used the RegistryEX plug in to get the string.

Posted: Thu Sep 07, 2006 5:39 pm
by MichaelNesmith
Use Label and GoTo, along with If, Parse String, etc.

Re: Parse a string

Posted: Fri Jan 17, 2014 5:14 pm
by sjziegler
get what you want for the first string into a variable. Then populate the second variable with the rest of the string. Then parse the second variable into the second desired variable and the rest, etc, until you have all the values you need. I do this several times and used the same technique in Wise.

Re: Parse a string

Posted: Mon Jan 20, 2014 5:10 am
by FrancescoT
Thanks for sharing it!