Advertisement

Quick VB Question for a small project I'm writing

Started by August 23, 2002 11:02 AM
1 comment, last by Radagar 22 years, 3 months ago
Hello, How do you use double quotes in strings in VB? can you? for example, I have ...

msg = "Hello"
user = "chris"

cmdtext = "Send " & "\"" & msg & " \"" & "To " & user;
 
In this exampe, I am using \" to represent where I need to insert a Quote, but It''s not working. I basically need to compile a string that looks like this: "Send "Hello" to Chris" and I''ll then output that string to another program... any ideas? ~~~~~~~~~~~ Chris Vogel ~~~~~~~~~~~
WyrmSlayer RPG - In Early Development
"Send " & chr(34) & msg & chr(34) & " To " & user
Advertisement
quote: Original post by Borfaux
"Send " & chr(34) & msg & chr(34) & " To " & user


Thanks!!



~~~~~~~~~~~
Chris Vogel
~~~~~~~~~~~
WyrmSlayer RPG - In Early Development

This topic is closed to new replies.

Advertisement