VFP 如何使用一个grid控件显示两个表

VFP 如何使用一个grid控件显示两个表,第1张

可以用sele查询两个表的内容,然后再将查询到的内容显示到grid控件中,如:
sele 学生,成绩 from 学生,成绩 where 学生学号=成绩学号 into cursor "temp"
thisformgrid1recordsource="temp"

list1
form1 init事件
thisformlist1columncount=3 三列,看你有多少个字段
thisformlist1rowsourcetype=2 别名
thisformlist1rowsource=表名dbf
右击表单添加数据环境
把表添加进去
或者
use 表dbf
thisformlist1columncount=3 三列,看你有多少个字段
thisformlist1rowsourcetype=2 别名
thisformlist1rowsource=表名dbf
顺序不要乱了
在属性栏内修改也可


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/12820669.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2025-08-28
下一篇2025-08-28

发表评论

登录后才能评论

评论列表(0条)

    保存