数据更新后带有grid的表单卡死
我这段代码是vfp6.0编写的,vfp自带数据库,数据环境添加的表,大局域网应用程序,是grid双击后得到字段付给变量,再返到C1容器上修改内容后保存的功能,C1容器与grid在同一表单上,修改后grid自动刷新了,可以看到修改后的效果。运行以上代码后,速度慢且有时候卡死,请大师指点一下,怎样优化,多谢![保存按钮]
sele b_kjda
repl all kf with ALLT(thisform.),wz WITH THISFORM.C1.txtwz.VALUE,hh WITH THISFORM.C1.txthh.VALUE,;
dwmc WITH THISFORM.C1.txtdwmc.VALUE,ajm WITH THISFORM.C1.txtajm.VALUE,ny WITH THISFORM.C1.txtny.VALUE,;
lry with XYZ, lrrq with DATE() for bh=wbh
thisform.C1.visible=.f.
thisform.grdB_kjda.enabled=.t.
=messagebox("修改信息成功",0+64,"系统提示")
[此贴子已经被作者于2022-5-12 17:01编辑过]