1,with mshflexgrid .rows=1 .cols=1 .textmatrix(0,0)="标题1" .textmatrix(0,1)="标题2" end with 2,if rs.state=adstateopen then rs.close rs.open "select aa as 标题1,bb as 标题2 from tablename",conn,adopenkeyset,adlockreakonly set mshflexgrid.datasource=rs rs.close set rs=nothing
利用FormatString,例如: FormatString="^标题1|^标题2|^标题3"
with mshflexgrid .textmatrix(0,0)="标题1" .textmatrix(0,1)="标题2" end with
.rows=1
.cols=1
.textmatrix(0,0)="标题1"
.textmatrix(0,1)="标题2"
end with 2,if rs.state=adstateopen then rs.close
rs.open "select aa as 标题1,bb as 标题2 from tablename",conn,adopenkeyset,adlockreakonly
set mshflexgrid.datasource=rs
rs.close
set rs=nothing
FormatString="^标题1|^标题2|^标题3"
.textmatrix(0,0)="标题1"
.textmatrix(0,1)="标题2"
end with