读书人

vf中怎样根据一个表结构的表(stru.

发布时间: 2012-03-09 16:54:57 作者: rapoo

vf中,怎样根据一个表结构的表(stru.dbf)生成一个数据表?
我的问题是这样的:
一个表(stru.dbf)说明了表结构,内容如下
field_name field_type field field_len field_dec feild_sm
bh c 2 编号
xm c 10 姓名
nl n 2 年龄

我想根据stru.dbf建立一个人员表ry.dbf
ry.dbf 的结构是
bh c(2)
xm c(6)
nl n((2)
在原来foxpro中可用一句话实现
create ry from stru
可是用vf不行,求高手指点。因为我的人员表结构是灵活的

[解决办法]
在VFP中也可以:
use tt
copy stru to tt1 exten
crea newtt from tt1

读书人网 >VFP

热点推荐