|
-
May 18th, 2001, 09:42 AM
#1
Thread Starter
Hyperactive Member
string containing " 's
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!""
-
May 18th, 2001, 09:43 AM
#2
Frenzied Member
Just use single quotes.
-
May 18th, 2001, 09:44 AM
#3
Lively Member
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
-
May 18th, 2001, 09:44 AM
#4
Lively Member
dim quote as string
quote = "Jimbob says ""Mowed my lawn and found a car!"""
-
May 18th, 2001, 09:45 AM
#5
Thread Starter
Hyperactive Member
cant I am building a string to be passed to a mainframe line editor that wants double's
-
May 18th, 2001, 09:45 AM
#6
Fanatic Member
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)
-
May 18th, 2001, 09:47 AM
#7
Frenzied Member
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)
-
May 18th, 2001, 09:48 AM
#8
Thread Starter
Hyperactive Member
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.
-
May 18th, 2001, 09:49 AM
#9
Thread Starter
Hyperactive Member
good gracious, alot of people replied to that one fast.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|