Hi
I'm new to this grp. I'm working on Vb6.0 apps. Here i've a problem, I'm using Dir(filepath) to retrieve the file from specifies path and i want to retrieve similar files from the same folder. I wrote Dir$ in the end of while loop.
here is how my looks like
sDataFile = Dir$(sDataPath & sDataFile) ' first file
Do While sDataFile <> ""
sDataFile = Dir$ 'next matching file
Loop
But this code retrieving unmatched file. Is there any limitation on the Dir() cmd..
Ex: There are files like abc2 03.txt, abc2 04.txt, abc20 03.txt, abc 20 04.txt.
If i enter abc20*.txt , it should return only last 2 files(abc20 03.txt, abc 20 04.txt) but its returning all 4 files.
Any help would be appreciated.
Thanks
Ramesh