vb中字符串中怎么输入双引号(")或单引号(')? 比如 stra=" you say:"hello" "?在 c语言里用"\"做转义符可输入 "you say:\" hello\" "vb里怎么输入呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 双引号:stra=" you say:""hello"" "单引号没有特殊写法:stra=" you say:‘hello’ " Dim str As Stringstr = " you say:""hello"""MsgBox strstr = """"MsgBox strstr = "'"MsgBox str Dim str As Stringstr = " you say:""hello"""MsgBox strstr = """"MsgBox strstr = "'"MsgBox str 或者chr(34) "chr(39) ' Dim str As Stringstr = " you say:""hello"""MsgBox strstr = """"MsgBox strstr = "'"MsgBox str Dim str As Stringstr = " you say:""hello"""MsgBox strstr = """"MsgBox strstr = "'"MsgBox str 双引号:"" 就是说一个双引号要写成两个双引号,如:a="hello""::"单引号:直接写在双引号内就行了,如:"'" text1.text=replace(text1.text,"'","''") stra=" you say:""hello"""stra=" you say:"'"hello"'"" stra=" you say:"& chr(34) & "hello & & chr(34) & " " stra=" you say:""hello"""stra=" you say:"'"hello"'"" Dim stra As String stra = " you say:" & """" & "hello" & """" MsgBox stra stra = " you say: "" hello """ MsgBox stra 在a机器录入数据,按保存键后,在b机器上可同时显示,该用什么方法实现? access2003中的VBA,请帮我看看哪里的代码错误了,为什么有语句不执行 textbox 中如何禁止键盘输入 怪问题:有个VB工程编译后的EXE文件图标总是回收箱的图标。 请教 菜鸟求助:VB如何编写文本批量替换? 求mschart控件 如何知道程序执行完成还剩多长时间 关于数据库的结构设计 VC++作的东东,怎样在VB里边用???望指教!!急!菜鸟 在VB中如何实现定时执行程序 ado的一个问题
stra=" you say:""hello"" "单引号没有特殊写法:
stra=" you say:‘hello’ "
str = " you say:""hello"""
MsgBox strstr = """"
MsgBox strstr = "'"
MsgBox str
str = " you say:""hello"""
MsgBox strstr = """"
MsgBox strstr = "'"
MsgBox str
chr(34) "
chr(39) '
str = " you say:""hello"""
MsgBox strstr = """"
MsgBox strstr = "'"
MsgBox str
str = " you say:""hello"""
MsgBox strstr = """"
MsgBox strstr = "'"
MsgBox str
"" 就是说一个双引号要写成两个双引号,如:a="hello""::"单引号:
直接写在双引号内就行了,如:"'"
stra=" you say:"'"hello"'""
stra=" you say:"'"hello"'""
stra = " you say:" & """" & "hello" & """"
MsgBox stra
stra = " you say: "" hello """
MsgBox stra