if i want a string to contain "'s how do I set them
so say the following
dim quote as string
quote = "Jimbob says "Mowed my lawn and found a car!""
Printable View
if i want a string to contain "'s how do I set them
so say the following
dim quote as string
quote = "Jimbob says "Mowed my lawn and found a car!""
Just use single quotes.:cool:
Just add the string like this:
MyString="Chris Said " & chr(34) & "I'm a bloody genius" & chr(34)
'cos chr(34) is the ascii for "
Cheers
Chris
dim quote as string
quote = "Jimbob says ""Mowed my lawn and found a car!"""
cant I am building a string to be passed to a mainframe line editor that wants double's
Or place Chr$(34) in where you want the quotes.
Code:dim quote as string
quote = "Jimbob says " & Chr$(34) & "Mowed my lawn and found a car!" & Chr$(34)
Just use single quotes or...
Code:quote = "Jimbob says ""Mowed my lawn and found a car!"" "
'or
quote = "Jimbob says " & chr(34) & "Mowed my lawn and found a car!" & chr(34)
thanks dude (dudes now and maybe dudettes too )! I knew that at some point but all the languages I know really sucks sometimes, between c, java, pascal, fortran, algo, scheme,lisp,asm,vb.,haskel,ada,prolog the syntax sometimes runs together.
good gracious, alot of people replied to that one fast.