以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]有什么办法能让datarow调用row的方法么  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=127528)

--  作者:tianwanshui
--  发布时间:2018/11/15 23:27:00
--  [求助]有什么办法能让datarow调用row的方法么
有些方法功能只有row有,比如插入行的InsertNew,在datarow里有什么好的方法可以替代么?
--  作者:有点甜
--  发布时间:2018/11/16 9:10:00
--  

查找

 

http://www.foxtable.com/webhelp/scr/0553.htm

 


--  作者:tianwanshui
--  发布时间:2018/11/16 10:25:00
--  
 Dim r As Row = Tables("表A").Rows.Insert(1)
这个代码提示错误:insert不是rowcollection的成员,看帮助里是先定义了Dim rt As New prt.RenderTable(),然后用rt.Rows.Insert(1)来插入行,可以如果要在指定的表里插入一行,这个代码还怎么修改?
Select Case e.DataCol.name 
 Case "审核" 
 If e.Newvalue = True Then 
 Dim dr As String = e.DataRow("身份证号码") 
 Dim pr As Integer = Tables("表A").Findrow("[身份证号码] = \'" & dr & "\'") 
 If pr > 0 Then 
 Dim r As Row = Tables("表A").Rows.Insert(pr+1) 
 End If
End If 
End Select  


--  作者:有点甜
--  发布时间:2018/11/16 10:29:00
--  

插入行,参考

 

http://www.foxtable.com/webhelp/scr/1981.htm

 

http://www.foxtable.com/webhelp/scr/1846.htm