Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to fill the list box
Message
From
27/09/2002 13:36:45
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/09/2002 11:04:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00705235
Message ID:
00705338
Views:
10
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform