|
-
April 10th, 2001, 12:14 PM
#1
Quotation Marks
Hi everybody!!!
I need some help.
I have to write the quotation mark character in a variable.
For example, the variable value is: hello"world
How can I do that?
Thanks
-
April 10th, 2001, 12:34 PM
#2
Re: Quotation Marks
Use two double quotes in a row:
strVar = "Adam said, ""VB is maddening sometimes."""
The value of strVar is Adam said, "VB is maddening sometimes."
-
April 10th, 2001, 01:31 PM
#3
Re: Quotation Marks
put the code in a bas module and then call like this
Text1 = ReplaceQuote(Text1)
public Function ReplaceQuote(Text as string) as string
ReplaceQuote = Replace(Text, Chr(34), Chr(34) & Chr(34))
End Function
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
|