some_guy 11 Posted December 3, 2009 Report Share Posted December 3, 2009 I have a string that I need to split into two variables. The string contains a charactor that I could split it on, I just don't know how to specify this in the editor. Something like string line; //this is my string to parse int i = line.indexOf('|'); string a = line.substring(0,i); string b = line.substring(i,line.length-i); Quote Link to post Share on other sites
some_guy 11 Posted December 3, 2009 Author Report Share Posted December 3, 2009 Never mind, found it, pretty much as soon as posted (always the way) Am using that string with a LIST FROM TEXT, splitting on the charactor, then looping that two item list to pump it into the variables required. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.