专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > VB Dotnet

新手小疑点?

发布时间:2011-06-23 16:00:11 文章来源:www.iduyao.cn 采编人员:星星草
新手小问题???
在vb.net中
下面是我从数据库中读取表中的一个字段,,,我要使读出的数据显示在Me.TextdicFormCaption.Text上......    
SqlStr   =   "SELECT       Caption   FROM   dicObjectText   where   MemberID= ' "   &   MemberID_Str   &   " 'and   TextCode= ' "   &   Text_Str   &   " 'and   Language= 'USA ' "
             
              Dim   dr   As   Odbc.OdbcDataReader
                dr   =   Me.comm.GetDataReader(SqlStr)   '从数据库中读取数据
                Me.TextdicFormCaption.Text   =   " "
                Me.TextdicFormCaption.Text   =       ' ' ' '这里怎样来写..

------解决方案--------------------
dr.table(0).rows(0).item(0).tostring
------解决方案--------------------
ds.Item( "字段名 ").ToString()
------解决方案--------------------
if dr.read then
Me.TextdicFormCaption.Text = dr( "Caption ")
end if
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: