cc=thisform.list3.listcount
public lll
if cc>0
then
i=1
do while i<=cc
ccc=alltrim(thisform.list3.list(i))
nnn=right(ccc,4)
kkk=left(ccc,2)
do case
case
nnn="政治"
lll="01"
do cjcl with lll,kkk
case
nnn="语文"
lll="02"
do cjcl with lll,kkk
case
nnn="数学"
lll="03"
do cjcl with lll,kkk
case
nnn="物理"
lll="04"
do cjcl with lll,kkk
case
nnn="化学"
lll="05"
do cjcl with lll,kkk
case
nnn="英语" or nnn="外语"
lll="06"
do cjcl with lll,kkk
case
nnn="历史"
lll="07"
do cjcl with lll,kkk
case
nnn="地理"
lll="08"
do cjcl with lll,kkk
case
nnn="生物"
lll="09"
do cjcl with lll,kkk
case
nnn="理综"
lll="10"
do cjcl with lll,kkk
case
nnn="文综"
lll="11"
do cjcl with lll,kkk
case
nnn="综合"
lll="12"
do cjcl with lll,kkk
endc
use cj&lll in i
PPP='THISFORM.GRID'+alltrim(str(i))+'.recordsource'
ppp='cj&lll'
qqq='thisform.grid'+alltrim(str(i))
with &qqq
.recordsourcetype=4
.columncount=3
.height=170
.width=140
.readonly=.t.
.scrollbars=0
.deletemark=.f.
.COLUMN1.WIDTH=55
.COLUMN2.WIDTH=35
.COLUMN3.WIDTH=40
.COLUMN1.HEADER1.CAPTION='xm'
.COLUMN2.HEADER1.CAPTION='kgf'
.COLUMN3.HEADER1.CAPTION='zgf'
.COLUMN1.controlsource='cj&LLL'+'.xm'
.COLUMN2.controlsource='cj&LLL'+'.kgf'
.COLUMN3.controlsource='cj&LLL'+'.zgf'
endwith
&qqq..refresh
i=i+1
endd
messagebox('导入成功,请查收,谢谢!','提示')
else
messagebox('请选择要一一对应科目与主观分对应顺序','提示')
endi