Sign in to follow this  
Followers 0
ainewb

Quotation mark delimiters.

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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? :lmao:

$DoubleQuote = '"'
MsgBox(64, 'Double Quote', $DoubleQuote)
Edited by SmOke_N

[center]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.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by karman

Share this post


Link to post
Share on other sites

You never mentioned what you wanted to do with the delimeter? :lmao:

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.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

... and Welcome to the Autoit Forums.... ainewb

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0