[求助]SQLAddNew()什么作用? Post By:2017/12/22 6:46:00 [显示全部帖子]
Dim dr AsDataRow = DataTables("订单").SQLAddNew() Dim inms() AsString = {"cp","kh","gy","dj","zk","sl","rq"} '输入框名称数组 Dim cnms() AsString = {"产品","客户","雇员","单价","折扣","数量","日期"} '列名数组,注意列名和输入框必须一一对应,位置不能错乱 For i AsInteger = 0To inms.Length -1 dr(cnms(i)) = e.PostValues(Inms(i)) Next dr.Save() '用SQLAddNew增加的行,必须保存一下,否则会被丢