vBGameMaker
02-16-2005, 03:32 PM
Hi, I'm making a simple program to show the files within a directory by specifing a directory and a wildcard such as *.txt*
It works fine for the part where it lists the files in the list box, but I would like it to only add one copy of the file to the listbox.
I was thinking something like a loop to compare the variable for the file which is strFile to the List1.List(i) or something like that.
Here is the file below, maybe you can get better insight from looking at what I'm trying to do.
It works fine for the part where it lists the files in the list box, but I would like it to only add one copy of the file to the listbox.
I was thinking something like a loop to compare the variable for the file which is strFile to the List1.List(i) or something like that.
Here is the file below, maybe you can get better insight from looking at what I'm trying to do.