Rss & SiteMap

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

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

标题:列表的代码出错

1楼
migold 发表于:2009/8/19 10:53:00
Dim cmd As New SQLCommand
Dim dt As DataTable
Dim cmb As WinForm.ComboBox
cmd.CommandText = "Select s_ID,u_Code,u_Name from dbo.StorHouse where s_Syb=1 and u_Name not in ('***')"
cmd.C
dt = cmd.ExecuteReader()
Dim dr As DataRow
dr = dt.AddNew()
dr("s_ID") = "0"
dr("u_Code") = "ALL"
dr("u_Name") = "查询所有库房"
cmb = e.Form.Controls("ComboBox1")
cmb.ComboList= dt.GetComboListString("u_Name")

2楼
migold 发表于:2009/8/19 10:54:00

以前是不会出错的,这次更新后就出错

3楼
yangming 发表于:2009/8/19 10:54:00
有什么提示?
4楼
migold 发表于:2009/8/19 10:56:00
Dim cmd As New SQLCommand
Dim dt As DataTable
Dim cmb As WinForm.ComboBox
cmd.CommandText = "Select s_ID,u_Code,u_Name from dbo.StorHouse where s_Syb=1 and u_Name not in ('***')"
cmd.C
dt = cmd.ExecuteReader()
Dim dr As DataRow
dr = dt.AddNew()
dr("s_ID") = "0"
dr("u_Code") = "ALL"
dr("u_Name") = "查询所有库房"
cmb = e.Form.Controls("ComboBox1")
cmb.ComboList= dt.GetComboListString("u_Name")

 

5楼
yangming 发表于:2009/8/19 10:58:00
重新下载今天的更新再试试吧
6楼
migold 发表于:2009/8/19 10:59:00
今天下载的
7楼
migold 发表于:2009/8/19 11:01:00
提示:
不存在名称为“”的DataTable
8楼
yangming 发表于:2009/8/19 11:05:00
Dim dt As DataTable,

这句没有表名啊
9楼
migold 发表于:2009/8/19 11:14:00

不懂,麻烦8楼楼主,给个代码,谢谢

10楼
yangming 发表于:2009/8/19 11:14:00
上传你的文件看看吧
共14 条记录, 每页显示 10 条, 页签: [1] [2]

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

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