How do I give a string varable a value that contains parenthasis ?
for example:
dim str as string
str= "the man said "hello" "
(this gives a compile error).
Thanks.
Danab.
Printable View
How do I give a string varable a value that contains parenthasis ?
for example:
dim str as string
str= "the man said "hello" "
(this gives a compile error).
Thanks.
Danab.
sString = "The Man Said, " & Chr(34) & "Hello" & Chr(34)
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Certified AllExperts Expert
I think you mean quotes instead of parenthesis...Here's another way...
Hope that helps.Code:Option Explicit
Private Sub Form_Load()
Dim TestString As String
Me.Show
TestString = "He said ""Hello"""
Print TestString
End Sub
~seaweed