Foxtable(狐表)用户栏目专家坐堂 → [求助]遍历添加出错


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

主题:[求助]遍历添加出错

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


加好友 发短信
等级:小狐 帖子:302 积分:1860 威望:0 精华:0 注册:2012/4/27 11:34:00
  发帖心情 Post By:2015/4/10 19:05:00 [显示全部帖子]

两个For Next循环逻辑就不对了!

Dim  r as Row = Tables("物料信息临时表").AddNew
Dim Texts() As String = {"TextBox1","TextBox2","TextBox3","NumericComboBox1","TextBox5","ComboBox1","TextBox6"}
Dim ct() As String ={"物料名称","物料类别","物料编号","库存下限","条形码","计量单位","备注"}
For  i As Integer  = 0 to ct.Length-1
       r(ct(i)) = e.Form.Controls(Texts(i)).value
Next

 回到顶部