例:目标代码:
dim strData as string
dim strNum,BRNO,strDate,strName as stringstrData = "*" + strNum + "!" + BRNO + "#" + strDate + "$" + strName
问题:
因上述代码中的:"*" + strNum + "!" + BRNO + "#" + strDate + "$" + strName 不确定,可能经常需要改动,请问能否以字符串参数将其输入?
dim strData as string
dim strNum,BRNO,strDate,strName as stringstrData = "*" + strNum + "!" + BRNO + "#" + strDate + "$" + strName
问题:
因上述代码中的:"*" + strNum + "!" + BRNO + "#" + strDate + "$" + strName 不确定,可能经常需要改动,请问能否以字符串参数将其输入?
解决方案 »
- vb中如何实现擦玻璃的效果?
- 从来没有一个人对MSFlexGrid的滚动方式提出异议,难道你们都适应那滚动条吗?
- vb编程
- 求助用Wmediaplay插件做MP3播放器
- 如何在VB上用SQL语句实现数据库的备份和还原,^-^高分相赠!!!
- 在这里回答问题就是狗吃粪吗?大家都是狗吗?请看:
- ActiveReport连打串行问题
- 经常看到有人问动态做DATAREPORT的问题,现在把我的经验共享出来
- 请问用vb怎样写摄像头捕捉程序?
- OFFICE启动WORD时会调用哪个链接库文件,在注册表中如何体现?
- 请问:怎么样用VB实现ftp的断点续传功能?谢谢了!
- 关于利用webbrowser不断打开不同网页的问题。请教。。。
比如strData = "*" + strNum + "!" + BRNO
strData = "*" + strDate + "$" + strName
strData = "*" + "!" + BRNO + "#" + strDate + "$" + strName
Option ExplicitPrivate Sub Command1_Click()
EbExecuteLine StrPtr(Text1.Text), 0, 0, 0
List1.AddItem Text1.Text
Text1.Text = ""
End Sub
但是你可以在算式中进行强制类型转换后再进行运算,将结果再传入字符串中。比如:a=*int(strNum)
b=!int(BRNO)
c=#int(strDate)
d=$int(strName)
f=a+b+c+d 不知这样理解对否???
要执行动态代码就用 Microsoft Script Control