Escaping quotes in a string in VB6

后端 未结 7 581
日久生厌
日久生厌 2020-11-29 11:01

I am trying to make some small changes to an old VB web app I need to add quotes inside of a string I\'ve had no luck so far. The string is

Dim sql As Stri         


        
7条回答
  •  一整个雨季
    2020-11-29 11:42

    You can use "" to insert a quote into a string e.g:

    dim sometext as String = "Hello ""Frank"" how are you?"

    Which gives you

    Hello "Frank" how are you?

提交回复
热议问题