2011-02-10 78 views

回答

3

额外"用来逃避"字符,因此序列当显示字符串时,两个双引号("")将显示为"

+0

它的工作原理,我没有尝试执行它,我的坏 – 2011-02-10 15:03:57

0

你实际上已经有了正确的4个引号,这就是VBs转义引号的方式。因此,举例来说:

 Dim oneDoubleQuote As String = """" 
    Dim twoDoubleQuotes As String = """""" 
    MessageBox.Show("One:" & oneDoubleQuote) 
    MessageBox.Show("Two:" & twoDoubleQuotes) 

第一个消息框有一个:”和第二个有两个:‘’

+0

是否有任何其他字符我可以用来逃避 – 2011-02-10 15:08:50