and6.enabled=.f. thisformmand4.enabled=.t. endif 8、 “<<”按钮 Command6.Click 事件代码: for i=1 to thisform.list2.listcount thisform.list1.additem(thisform.list2.list(1)) thisform.list2.removeitem(1) endfor thisformmand3.enabled=.t. thisformmand4.enabled=.t. thisformmand5.enabled=.f. thisformmand6.enabled=.f. 9、选择数据表文件组合框 Combo1.Click 事件代码: public fn for i=1 to thisform.list1.listcount thisform.list1.removeitem(1) endfor for i=1 to thisform.list2.listcount thisform.list2.removeitem(1) endfor fn=getfile('dbf') this.displayvalue=fn use &;fn
zds=fcount() for i=1 to zds thisform.list1.additem(field(i)) next thisformmand3.enabled=.t. thisformmand4.enabled=.t. thisformmand5.enabled=.f. thisformmand6.enabled=.f. thisform.list1.listindex=1 三、建立调用表单的主控程序: set talk off set sysmenu off close database systit='江西旅游商贸职业' _screen.caption=systit do form 转换 read even set talk on 四、创建项目进行连编生成可执行文件: 在 VFP 中创建一个项目,将建立的表单和主
程序添加到项目管理器,如图 2 所示。利 用项目管理器对主程序进行连编,编译成可执行的“数据转换程序.exe” 文件。
图2 五、执行程序效果:
注意:在选择输出字段时不能选择通用型字段。
Fast
becomes the VFP database the EXCEL table
Abstract: This article introduced with VFP took the development language, wilfully the VFP data sheet fast output will be the Excel table small tool software programming method, thus realizes in Excel carries on the form the edition. Key
word:VFP ,EXCEL ,event code