Escaping quotes in a string in VB6

后端 未结 7 580
日久生厌
日久生厌 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"   
    

提交回复
热议问题