以下是添加按钮里的代码 dimension c[1] sele 1 m=messagebox("确实要增加记录吗?",4,"系统提示!") if m=6 thisform.pageframe1.page1.text1.readonly=.f. ..
thisform.pageframe1.page1.text1.value=' ' thisform.pageframe1.page1.text2.value=" " .. c[1]=0 sele max(编号) from 开关 into array c thisform.pageframe1.page1.text11.value=c[1]+1 endif 以下是保存按钮里的代码 sele 1 loca for 编号=thisform.pageframe1.page1.text11.value if eof() inse into 开关(双编号,...,编号); values(thisform.text1.value,; thisform.pageframe1.page1.text1.value,; thisform.pageframe1.page1.text2.value,; .. thisform.pageframe1.page1.text11.value) else repl 双编号 with thisform.pageframe1.page1.text1.value repl 设备型号 with thisform.pageframe1.page1.text2.value .... repl 编号 with thisform.pageframe1.page1.text11.value endif thisform.PAGEframe1.page1.text1.readonly=.t. .... thisform.pageframe1.page1.text10.readonly=.t.
if thisform.pageframe1.page1.text1.value=" " messagebox("设备名称不能为空",4,"系统提示!") endif
请问为什么添加保存会将表中当前数据覆盖掉,产生修改的结果呢? 究竟错在哪里呀?大家给看看吧,谢谢