求助,考场标志打印问题。
做的报表有两个不明白的地方,附样表一张,求助各位专家。
考场标志打印.rar
(33.23 KB)
PUBLIC _ksmc SET SAFETY OFF CLOSE TABLES all SELECT 考点代码,考点名称,课程代码,课程名称,科次,考试时间,SPACE(3) 考场 FROM t_kcap INTO CURSOR kctmp WHERE 1=2 READWRITE irecc=RECCOUNT('t_kcap') DIMENSION kcar(7) FOR i=1 TO irecc SELECT t_kcap GO i copy to array kcar FIELDS 考点代码,考点名称,课程代码,课程名称,科次,考试时间 RECORD i bg=round(VAL(开始),0) ed=round(VAL(结束),0) FOR j=bg TO ed[local]1[/local] kcar[7]=PADL(j,3,'0') SELECT kctmp APPEND FROM ARRAY kcar FIELDS 考点代码,考点名称,课程代码,课程名称,科次,考试时间,考场 ENDFOR ENDFOR _ksmc=STR(YEAR(DATE()),4)+'年'+IIF(MONTH(DATE())<7,'上','下')+'半年教师资格考试(笔试)' SELECT kctmp REPORT FORM t_kcap TO PRINTER PROMPT PREVIEW
[此贴子已经被作者于2020-3-6 19:56编辑过]
PARAMETERS cStart,cEnd LOCAL kclist,i KcList='' FOR i=INT(VAL(cStart)) TO INT(VAL(cEnd)) KcList=KcList+PADL(i,3,"0")+SPACE(2) ENDFOR RETURN Kclist