FOR i = 1 TO 12 b = "月" + PADL(i, 2, "0") ?b ENDFOR
LOCAL xfile,xfield,i xfile = SYS(2015) xfield = '分公司 C(50)' FOR i=1 TO 12 xfield = xfield + ',月'+TRANSFORM(i) + ' C(20)' ENDFOR CREATE CURSOR &xfile (&xfield) SELECT * FROM &xfile
CREATE TABLE hzb (fgs c(10)) FOR i = 1 TO 12 b = "月" + PADL(i, 2, "0") ALTER TABLE hzb ADD &b c(20) ENDFOR BROWSE