• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

Using a " as part of a string...

Hi

I need to use a " as part of a string, but as i'm sure most people know it just ends the string. I can't use any other character for this, please can someone help.
0
nigelboyle
Asked:
nigelboyle
  • 2
  • 2
  • 2
1 Solution
 
PockyMasterCommented:
Just double it like ""
0
 
PockyMasterCommented:
e.g.
 MessageBox.Show("My string contains a "", so cool!")
0
 
Harisha M GCommented:
Hi,

you can also use "My string contains a " & Chr(34) & ", so cool!"


---
Harish
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
nigelboyleAuthor Commented:
Thanks, I was being stupid.
0
 
nigelboyleAuthor Commented:
Thanks as well mgh, but I accepted Pocky's before I saw yours.
0
 
Harisha M GCommented:
No problem :)
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now