# Re: 如何使用VB开启dbaseIII.....请各位先进...帮帮帮.....帮个忙

Posted by wave on September 08, 1999 at 15:32:24:

In Reply to: 如何使用VB开启dbaseIII.....请各位先进...帮帮帮.....帮个忙 posted by James on September 08, 1999 at 10:35:17:

例如
dim MyDb as Database
dim MyTb as Recordset
set MyDb = OpenDatabase("c:\test",False,False,"Dbase III;")
set MyTb = MyDb.OpenRecordset("a1.dbf")
此范例在你的目录c:\test底下开启a1.dbf,若a1.dbf有索引档,必须自己产生一a1.inf内容如下:
ndx1=tt1.ndx
ndx2=tt2.ndx
程式在用MyTb.index="tt1"资料就会依照tt1.ndx排序

Follow Ups: