Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:请帮忙写个 窗口中两个控件相加的代码

1楼
mr725 发表于:2009/3/1 14:56:00

 Tables("表名").Current("列名") = combobox  +  textbox  绿色部分怎么表达?
【这样: e.form.controls("combobox").value + & "-" & +e.form.cntrols("textbox") .value   不对呀】

2楼
菜鸟foxtable 发表于:2009/3/1 15:03:00

如果是字符试试这样
Dim str as string
str = e.form.Controls("comboBox1").Value
str = str & "-" & e.form.Controls("TextBox1").Value
Tables("表名").Current("列名") = str


[此贴子已经被作者于2009-3-1 15:04:22编辑过]
3楼
mr725 发表于:2009/3/1 15:19:00
菜兄,谢谢了~ ok! 原来不需要用‘+’号啊~
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01953 s, 2 queries.