Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting FullPath in Listbox
Message
From
26/09/1998 19:20:38
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00141159
Message ID:
00141164
Views:
28
>I have a Listbox in VFP and want the complete path when listing
>files. RowSource = 7 (Files) The value only returns the name of
>the database name selected. And Fullpath() finds the file where it
>is listed on a different drive.
>
>I want the value to contain "c:\comm\in\dealer.dbf" but the value
>parameter only returns "dealer.dbf" And using Fullpath finds the
>file dealer.dbf in another directory.

One approach would be to populate an array with ADIR(), and then scan the array, prefixing the names with the path. Use the array as the rowsource for the listbox.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform