以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助] 将光标移动到新增行 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=57120) |
-- 作者:wumingrong1 -- 发布时间:2014/9/18 16:14:00 -- [求助] 将光标移动到新增行 以下命令该怎么修改、才能实现光标自动移动到新增行? Dim ndr As DataRow = DataTables("光缆名称表").Find(" 起始机房 = \'" & e.Form.Controls("起始机房").Text & "\' And 终点机房 = \'" & e.Form.Controls("终点机房").Text & "\' And 光缆对数 = \'" & e.Form.Controls("光缆对数").Text & "\' And 光缆编号 = \'" & e.Form.Controls("光缆编号").Text & "\'") If ndr Is Nothing Then If e.Form.Controls("起始机房").Text > "" And e.Form.Controls("终点机房").Text > "" And e.Form.Controls("光缆对数").Text > "" Then ndr = DataTables("光缆名称表").AddNew() ndr("起始机房") = e.Form.Controls("起始机房").Text ndr("终点机房") = e.Form.Controls("终点机房").Text ndr("光缆对数") = e.Form.Controls("光缆对数").Text ndr("光缆编号") = e.Form.Controls("光缆编号").Text End If End If
|
-- 作者:有点甜 -- 发布时间:2014/9/18 16:15:00 -- Dim nr As Row = Tables("光缆名称表").AddNew() |
-- 作者:wumingrong1 -- 发布时间:2014/9/18 16:27:00 -- 提示错误 |
-- 作者:有点甜 -- 发布时间:2014/9/18 16:28:00 -- 呃,下面的你肯定也得改
nr("起始机房") = e.Form.Controls("起始机房").Text nr("终点机房") = e.Form.Controls("终点机房").Text
nr("光缆对数") = e.Form.Controls("光缆对数").Text
nr("光缆编号") = e.Form.Controls("光缆编号").Text
|