>I'm using the adir function to try to display file details in my application.
> I'm using a listbox to display the array and the files I'm trying to display
>are elements of an array in my application. I have an option
>button set up on my form for the user to select 1 file of my current array or all of the files, and when selected I want the details to display
>in my listbox. In the click event of my command button code
>when the user chooses all files I'm assigning that to a variable and then I am using this variable as the file skeleton in my adir function.
>I am doing the same when they select 1 file. i,e,
>
> x=(adatafiles[i])
>
> Adir(myarray, x)
>
>This isn't giving me the correct results. Can I use a variable with the adir function as I am trying to do? Any suggestions would be greatly appreciated.
>
>Thank you.
Sheena,
What results are you getting? You can use a variable but without knowing what you are getting back we don't know what's going wrong.