Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to fill the list box
Message
De
27/09/2002 13:36:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/09/2002 11:04:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00705235
Message ID:
00705338
Vues:
11
>Hi all
>
>I'm using the FTP class for vfp5.0, i would like to fill the listbox(lstSource) with the files that start with EMP into the list box(mover list box) and how to copy the files when user have moved to Destination listbox to actual directory of the harddisk.

Most of the moverboxes I've seen (I think there's a lot of samples everywhere, even shipping with VFP, or here on UT downloads) work with two arrays - source and target. Target array would probably be empty, one-row to begin with, while the source array can be made like this:
aDir(aSource, forcepath("emp*.*", cSourceDir))
Then it's just a matter of passing this array to your moverbox. Or you can have this line in the .init of the box, then set the rowsource of the left listbox to this array (in which case the array better be a property of the form) and requery the listbox.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform