Foxtable(狐表)用户栏目专家坐堂 → [求助]打开项目提示“未将对象引用设置到对象的实例”


  共有1905人关注过本帖树形打印复制链接

主题:[求助]打开项目提示“未将对象引用设置到对象的实例”

帅哥哟,离线,有人找我吗?
Hyphen
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐神 帖子:5015 积分:25363 威望:0 精华:0 注册:2015/8/18 9:21:00
  发帖心情 Post By:2016/4/2 15:01:00 [显示全部帖子]

说明项目打开的时候关联表已经打开了

Dim nd As WinForm.TreeNode
Dim dt As DataTable
Dim sql As String
Dim je1,je2 As Double
Dim ndtext As String
Dim tr As  WinForm.TreeView = e.Form.Controls("TreeView1")

sql = CExp("sele ct * fr om t1 wh ere projectID ='{0}' ",_ProjectID)
dt = Functions.Execute("GetTableBySQL",sql)

tr.StopRedraw()
tr.Nodes.Clear
If dt IsNot Nothing Then
    je2 = dt.compute("sum(g2float)")
End If
tr.ResumeRedraw()

 回到顶部