W wuyi10 Unregistered / Unconfirmed GUEST, unregistred user! 2006-04-10 #1 某个路经下有多个TXT文件,如 D:/ABC/ 我如何取回这些TXT文件呢?最好给例子 谢谢
M myid0602 Unregistered / Unconfirmed GUEST, unregistred user! 2006-04-10 #2 Private Sub Command1_Click() Dim MyFile, FName(999) MyFile = Dir("D:/abc/*.TXT" i = 0 Do While MyFile <> "" ' 开始循环。 FName(i) = MyFile MyFile = Dir ' 查找下一个。 i = i + 1 Loop End Sub
Private Sub Command1_Click() Dim MyFile, FName(999) MyFile = Dir("D:/abc/*.TXT" i = 0 Do While MyFile <> "" ' 开始循环。 FName(i) = MyFile MyFile = Dir ' 查找下一个。 i = i + 1 Loop End Sub