ainewb Posted October 3, 2006 Share Posted October 3, 2006 Searched about for ages with various terms and for sample code.. and I've given up =D What I'm trying to do is use a quotation mark as a delimiter. I fiddled about looking for a way to input the ascii equivalent but no success yet. Seems most people just used an alternative character for their delimiters. There must be a way around it apart from using an alternative character? Sample data is as follows: 1234567,"Joe Bloggs" 8910111,"John Doe" Thanks in advance. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 3, 2006 Moderators Share Posted October 3, 2006 (edited) Searched about for ages with various terms and for sample code.. and I've given up =D What I'm trying to do is use a quotation mark as a delimiter. I fiddled about looking for a way to input the ascii equivalent but no success yet. Seems most people just used an alternative character for their delimiters. There must be a way around it apart from using an alternative character? Sample data is as follows: 1234567,"Joe Bloggs" 8910111,"John Doe" Thanks in advance.You never mentioned what you wanted to do with the delimeter? $DoubleQuote = '"' MsgBox(64, 'Double Quote', $DoubleQuote) Edited October 3, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
karman Posted October 3, 2006 Share Posted October 3, 2006 (edited) $split = StringSplit('1234567,"Joe Bloggs"', '"') msgbox(0, "$split[1] and $split[2]", $split[1] & " // " & $split[2]) Worked for me and I hope it works for you. Have fun! Edited October 3, 2006 by karman Link to comment Share on other sites More sharing options...
ainewb Posted October 3, 2006 Author Share Posted October 3, 2006 You never mentioned what you wanted to do with the delimeter? Oops. I wanted to strip the quotation marks from the names so perhaps StringSplitting isn't the right move to make on it in second thoughts.Ah you people use single quotes. Just got into the habit of using double quotation marks. I'll give it a shot tomorrow when I get back to work.Thx for the help ppls. Link to comment Share on other sites More sharing options...
Valuater Posted October 3, 2006 Share Posted October 3, 2006 (edited) ... and Welcome to the Autoit Forums.... ainewb 8) Edited October 3, 2006 by Valuater Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now