回复 3楼 sdta
我的臨時表沒了是怎麼回事啊,代碼如下,麻煩親看下!
CREATE CURSOR TPAGE22 (s1 C(10), s2 C(10) NOT NULL, s3 N(6, 0) DEFAULT 0, s4 D, s5 D, s6 D, s7 L(1) NOT NULL DEFAULT .F.)
= cursorsetprop("BUFFERING", 1)
*INDEX ON
TAG
= cursorsetprop("BUFFERING", 5)
SELECT * FROM jpcorp!祇砯羆? WHERE 矪瞶夹癘=.F.
INTO CURSOR TEMP1
SELECT ("TEMP1")
SCAN
SELECT ("TPAGE22")
APPEND BLANK
REPLACE tpage22.s1 WITH temp1.1
REPLACE tpage22.s2 WITH temp1.2?
REPLACE tpage22.s3 WITH temp1.3
REPLACE tpage22.s4 WITH temp1.4
REPLACE tpage22.s5 WITH temp1.5
REPLACE tpage22.s6 WITH temp1.6
ENDSCAN
SELECT ("TPAGE22")
tableupdate(.T.)
GOTO TOP
WITH thisform.pageframe1.page2.grid2
.recordsourcetype = 1
.recordsource = "TPAGE22"
.refresh
ENDWITH
use path+"ss?.dbf"
这里用了USE 后,上面那个tpage22表就没了,如果我不用USE 这条命令,下面的表单就打不开,
挪位置好像不可以哦,
这是怎么回事啊!!