2011-02-10 79 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