Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETFILE & LOCFILE
Message
 
 
À
01/10/1999 13:25:26
Coann Teng
Computer Infobase System S/B
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00271641
Message ID:
00271650
Vues:
20
>Can i do this??
>
>
>
>what i want is that i want to open a .frx file, when use GetFile, i want to fill up the file name column as well.. like rptlist*
>
>
>
>this can be done by Locfile.. but then it return the full path... i want the file name only..
>
>
>
>any idea.. what can i do???
>
>
>
>thank in advance

To get a list of all the FRX files, you can use:
lnRetVal = ADIR(laReports, "path_to_frx\*.frx")
for i = 1 to lnRetVal
   laReports[i, 1] = strtran[laReports[i, 1], ".FRX", ""] && strips the .FRX
endfor
This will give a list of all the FRX files returned to the array laReports. You can then make this array the source of a combobox to select from.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform