Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem displaying results of Adir() in Listbox
Message
 
 
À
07/04/1998 14:36:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00090229
Message ID:
00090273
Vues:
22
Sheena,

This would be a good candidate to create a reuseable listbox subclass to handle this function. You could then give the subclass it's own array property called FileInfo that you redimension and fill in a method. You'd make the listbow RowSource this.FileInfo. Once the array is filled you call the Requery() method so it'll display the new array contents.

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform