Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem displaying results of Adir() in Listbox
Message
From
07/04/1998 14:44:20
 
 
To
07/04/1998 14:36:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00090229
Message ID:
00090231
Views:
19
>I'm using the Adir function to create an array of file details.
>
>I want to display this in a listbox but when I run my form, I get
>
>an error stating "fileinfo" is not an array"
>
>My adir function is as follows:
>
> Adir(fileinfo," c:\wincats")
>I cannot declare this as a public array because it is variable length
>and I am copying the results of 6 adir functions to the final array
>fileinfo of which I will never know the exact size. All of the copying worked fine and it dispays fine but not in my listbox.
>
>I have set rowsourcetype = 5
> rowsource = fileinfo
> # of elements - alen(fileinfo),1)
>I've tried everythig I can think of, any suggestions or assistance
>would be greatly appreciated.

Firstly, use form's property array. Secondly, use proper syntax for ADIR():
=adir(thisform.afileinfo,"c:\test\*.*")
with thisform.list1
 .rowsourcetype=5
 .columncount=5
 .rowsource="thisform.afileinfo"
endwith
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform