临时表不能正常显示
临时表作为数据源时显示空表,只有表结构在grid中
在运行时在命令窗口用browse显示正常。这问题怎么回事。
代码是这样的:
IF this.Value=1
fnx=alltrim(thisform.pageframe1.page2.combo1.value)+"订单"
thisform.pageframe1.page2.grid1.RecordSource=null
thisform.pageframe1.page2.grid1.RecordSource='SELECT * FROM &fnx WHERE 状态="等待中" INTO cursor fic'
thisform.pageframe1.page2.grid1.RecordSource="fic"
thisform.pageframe1.page2.grid1.Refresh
fnx=alltrim(thisform.pageframe1.page2.combo1.value)+"订单"
SELECT * FROM &fnx WHERE ALLTRIM(状态)=="等待中" INTO cursor fic
WITH thisform.pageframe1.page2.grid1
.COLUMNCOUNT=FCOUNT()
FOR I=1 TO FCOUNT()
.COLUMNS(I).HEADER1.CAPTION=FIELD(I)
ENDFOR
.RecordSource="fic"
.Refresh
ENDWITH
If This.Value=1
Thisform.pageframe1.page2.grid1.RecordSource=Null
fnx=Alltrim(Thisform.pageframe1.page2.combo1.Value)+"订单"
Select * From &fnx Where 状态="等待中" Into Cursor fic
Thisform.pageframe1.page2.grid1.RecordSourceType=1
Thisform.pageframe1.page2.grid1.RecordSource="fic"
Thisform.pageframe1.page2.grid1.Refresh
....