Sign in to follow this  
Followers 0
Drew

How do you include quotes in a string?

4 posts in this topic

Alright I need to have quotes in something , but when I try it just closes the previous set of quotes and so on so forth.

I need it to be ONE quote... with quotations INSIDE of it.

How do you do this?

I tested a few things , for example , using 's

MsgBox( 0, "asdf", '"hi"') <-- Returned "hi"

But thats not working with what I'm doing now...

Clipput( '<a href"http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID='&$read'">Quick Add</a>' )

What this program will ultimately accomplish is allowing users to produce a hyperlink done in HTML in 1 very simple , very quick step.... but if you know anything about HTML , I need those quotations in it... So How would I include them without getting errors?

I've been trying alot of things and can't find a working method.

Thanks for any comments,

*Drew

Share this post


Link to post
Share on other sites



Oh god... posted 3 times... I'm sorry guys , It wasn't me just pushing the button because it was going slow... I got some internal error or something twice.

=(

Share this post


Link to post
Share on other sites

The system has been slow most of the day, I've been getting the internal error as well.

To get around the quotes issue, use single quotes outside of double quotes.

Example

msgbox('"Quoted Text"',"Your text here")

That will return a message box with "Quoted Text" as the title, and Your text here as the message


Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

Share this post


Link to post
Share on other sites

You can use single-quotes around the string, or you can also use 2 double quotes within the string, i.e. "<a href=""http://www....friendID=" & $read & """>"

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