空帮哇:[SOS] 求 VFP6.0 的几个语句

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 15:49:53
1。在表单中text1中输入序号,单击表单中的command1即可对人员表中该序号的记录进行查询,查询结果输出在插入的人员表表框中。问如何编写command1的代码?

2。在报表的叶脚中插入3个标签 年、月、日,在那里、如何编写语句可在相应标签前面显示日期?
[year(date())] [month(date())] [day(date())]

1 、
if used("人员表") &&简为ry
sele ry
else
sele 0
use ry
endif
sele * from ry into cursor ry_tmp where alltrim(序号)==alltrim(thisform.text1.value)
thisform.grid1.recordsource="ry_tmp"
2、
分别做三个域控件,在表达式中直接填上语句就行了