vf表单问题

2025-04-19 17:50:32
推荐回答(1个)
回答1:

在数据环境中添加表,设置该表的属性:缓冲模式为5,即开放式表缓冲

先输入数据, 在使用tableupdate()保存数据之前,运行一段代码.
该代码用来检测新输入的学号在原表中有没有.

示例:
lcxh=新输入的学号
local larrxh
dimension larrxh(1)
larrxh(1)=0
select count(学号) from 表 where 学号=lcxh
if larrxh(1)>0
messagebox('学号重复')
return .f.
endif