|
当我检查一个字符串的内容是,字符中包含有双引号怎么办?
如:
字符串:Part NumberLayers 1 2 3 4 5 6 Thickness(mm) 0.1mm/0.0039" 0.2mm/0.0079" 0.3mm/0.012" Other Dimension* X cm inch mm per Piece Panel (base on Gerber file) Material Polyimide。
我在网上查到了两个方法都不行:
1、chr(34)为双引号,把字符串写成如下:
art NumberLayers 1 2 3 4 5 6 Thickness(mm) 0.1mm/0.0039"&chr(34)&" 0.2mm/0.0079"&chr(34)&"0.3mm/0.012"&chr(34)&“Other Dimension* X cm inch mm per Piece Panel (base on Gerber file) Material Polyimide
2、在双引号后面增加一个双引号如:
Part NumberLayers 1 2 3 4 5 6 Thickness(mm) 0.1mm/0.0039"" 0.2mm/0.0079"" 0.3mm/0.012"" Other Dimension* X cm inch mm per Piece Panel (base on Gerber file) Material Polyimide。
请各位朋友帮帮忙! |
|