how do you include " character in a string?
Printable View
how do you include " character in a string?
Use triple quotes.
ORCode:Print """Hello"""
Code:Print Chr(34) & "Hello" & Chr(34)
say for example you wanted the string to contain "hello"
you would put:
[code]
dim strhello as string
strhello = """hello"""
[\code]
Hope this was of help!!
Try this:
Code:MsgBox """A"
thanks alot guys for posting replies ... i think i'll go with megatron's chr(34) idea... thanks again