Dim filename
Dim a()
filename = Dir(File1.Path + "\*.*")
i = File1.ListCount
For k = 0 To i
ReDim Preserve a(s)
a(s) = filename
s = s + 1
filename = Dir(File1.Path + "\*.*")
Next
Text1.Text = a(1)
Dim filename
Dim a()
filename = Dir(File1.Path + "\*.*")
i = File1.ListCount
For k = 0 To i
ReDim Preserve a(s)
a(s) = filename
s = s + 1
filename = Dir(File1.Path + "\*.*")
Next
Text1.Text = a(1)
Dim filename
Dim a()
filename = Dir(File1.Path + "\*.*")
i = File1.ListCount
For k = 0 To i-1
ReDim Preserve a(s)
a(s) = filename
s = s + 1
filename = Dir(File1.Path + "\*.*")
Next
Text1.Text = a(1)
Dim filename Dim a() filename = Dir(File1.Path + "\*.*")
k=1 do
if filename="" then exit do ReDim Preserve a(k) a(k) = filename
k=k+1 filename = Dir(File1.Path + "\*.*") loop
Text1.Text = a(1)