表格?GRID吗?GRID是来显示表记录内容的,而VFP表里的图片若用绑定型控件显示的话,只能显示.BMP格式的图片,而此种格式图片容量都很大,没什么意思。若要显示其他格式图片如.JPG的,用IMAGE控件。
*“查找”按钮的click代码:
x=allt(thisform.text1.value)
y=allt(thisform.text2.value)
thisform.grid1.columncount=3 && 表格设置3列
thisform.grid1.column1.header1.caption="标题1"
thisform.grid1.column2.header1.caption="标题2"
thisform.grid1.column3.header1.caption="标题3"
thisform.grid1.column1.width=175 &&列宽175
thisform.grid1.column2.width=64
thisform.grid1.column3.width=56
thisform.grid1.recordsource="sele * from std_cj where 总成绩 between x and y"
thisform.grid1.recordsourcetype=1
thisform.grid1.column1.controlsource="与标题1对应的实际字段名称"
thisform.grid1.column2.controlsource="与标题2对应的实际字段名称"
thisform.grid1.column3.controlsource="与标题3对应的实际字段名称"
thisform.grid1.refresh
x=thisform.text1.value
y=thisform.text2.value
thisform.grid1.recordsourcetype=4
thisform.recordsource="sele * from std_cj where 总成绩 between x and y"
thisform.grid1.refresh