1.
在FORM的INIT事件里加:
Public Sub[30]
For i=1 to 30
Thisform.Check1.Value=Sub[i]
Endfor
在FORM的UNLOAD中加入:
For i=1 to 30
Sub[i]=Thisform.Check1.Value
Endfor
2.由于你在运行完SELECT语句以后,当前工作区为临时表lindeping,建议程序这样改:
select * from 人事档案!rskp;
where &ldp.=alltrim(thisform.combo1.displayvalue);
order by rskp.代码;
into cursor lindeping
If Reccount()==0
messagebox("sorry!您的查询不存在!",48,"人事管理系统")
Return
else
do form rskpb2
rskpb2.refresh
thisform.release
endif
*!*仅供参考
在FORM的INIT事件里加:
Public Sub[30]
For i=1 to 30
Thisform.Check1.Value=Sub[i]
Endfor
在FORM的UNLOAD中加入:
For i=1 to 30
Sub[i]=Thisform.Check1.Value
Endfor
2.由于你在运行完SELECT语句以后,当前工作区为临时表lindeping,建议程序这样改:
select * from 人事档案!rskp;
where &ldp.=alltrim(thisform.combo1.displayvalue);
order by rskp.代码;
into cursor lindeping
If Reccount()==0
messagebox("sorry!您的查询不存在!",48,"人事管理系统")
Return
else
do form rskpb2
rskpb2.refresh
thisform.release
endif
*!*仅供参考
form1的init
if file("SaveCheckValue.dbf")
sele 0
use SaveCheckValue
scan
checkname="check"+allt(str(xh))
thisform.&checkname..value=checkvalue
endscan
else
create table SaveCheckValue(xh n(2),checkvalue n(1))
for i=1 to 13 &&13指你的check数
appe blank
repl xh with i,checkvalue with 0
endfor
endfor
if !used("SaveCheckValue")
sele 0
use SaveCheckValue
scan
nxh=xh
checkname="check"+allt(str(xh))
repl checkvalue with thisform.&checkname.value for xh=nxh
endscan
endif
if !used("SaveCheckValue")
sele 0
use SaveCheckValue
else
sele SaveCheckValue
endifscan
nxh=xh
checkname="check"+allt(str(xh))
repl checkvalue with thisform.&checkname.value for xh=nxh
endscan
form init
public aa
if file("aa.mem")
restore from aa.mem
for i=1 to alen(aa)
checkname="check"+allt(str(i))
thisform.&checkname..value=aa(i)
endfor
else
dime aa(13) &&13是指你的check数
store 0 to aa
endifform unloadfor i=1 to 13
checkname="check"+allt(str(i))
aa(i)=thisform.checkname..value
endfor
save to aa.mem all like aa
release all like aa