Foxtable(狐表)用户栏目专家坐堂 → [求助]求教一下一下代码如何加载行


  共有1651人关注过本帖平板打印复制链接

主题:[求助]求教一下一下代码如何加载行

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


加好友 发短信
等级:小狐 帖子:348 积分:2805 威望:0 精华:0 注册:2016/8/24 10:39:00
[求助]求教一下一下代码如何加载行  发帖心情 Post By:2018/7/6 9:45:00 [只看该作者]

Dim Result As DialogResult
Result = MessageBox.Show("是否要执行此操作", "提示", MessageBoxButtons.YesNo)
If Result = DialogResult.No Then
    'Return
Else
Dim t As Table = Tables("表A")
'dim c as integer = 0
If t.Current Is Nothing Then Return False
If t.TopPosition < 0 Then Return False '如果选定区域不包括数据行

Dim it As Win.Data.ITable = SYS.Tables(t.Name)
For i As Integer = it.TopRow To it.BottomRow
    Dim r As Win.Data.IRow = it.Rows(i)
If r.visible = False Then Continue For
If r.IsNull("_Identify")= True  Then Continue For
'For i As Integer = t.TopPosition To t.BottomPosition
    'Dim r As Row = t.Rows(i)
SYS.execproc("数据源","exec 存储过程 '','"& r("_Identify") &"'")
r.Load()    '此代码不是Win.Data.IRow 的成员,该怎么改
'c=c+1
Next
Try
    'Dim dt As DataTable = DataTables("表A")
    'dt.load
Catch ex As Exception
    Throw ex
End Try
End If
MessageBox.Show("执行完毕,请检查是否有错误!", "提示")

 回到顶部