读书人

请问 怎样从dbf文件中取数据给变量?并

发布时间: 2013-08-24 13:17:55 作者: rapoo

请教 怎样从dbf文件中取数据给变量?并显示在text控件中
RT 我自己写的代码报错
数据库名为table1,字段名为Owner,我写代码update数据库里面的数据已经可以实现了
但是目前取数据有问题
以下是我的command代码:

select thisform.text1.value=Owner from table1 where Case_no=55 and Id_no=33
thisform.refresh

或者赋值给变量,也不行
select tt1=Owner from table1 where Case_no=55 and Id_no=33
thisform.text1.value=tt1
thisform.refresh
[解决办法]
可以:
DIMENSION tt1(1,1)
select Owner from table1 where Case_no=55 and Id_no=33 into ARRAY tt1
thisform.text1.value=tt1(1)
thisform.refresh

读书人网 >VFP

热点推荐