Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting FullPath in Listbox
Message
De
26/09/1998 19:20:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00141159
Message ID:
00141164
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform