Escaping quotes in a string in VB6

后端 未结 7 579
日久生厌
日久生厌 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:56

    it's like this..

    dim user_id as string="SomePerson"
    debug.print "UserId=" & chr(34) & user_id & Chr(34)
    

    produces..

    UserID="SomePerson"   
    
    0 讨论(0)
提交回复
热议问题