Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getfile in another directory other than home
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01646483
Message ID:
01646484
Vues:
62
>How would I modify this retrieve statement to open a file in a chosen directory
>say the directory I want to inspect is C:/MyDir/*.txt
>Without having to CD
>
>gcTableName = GETFILE('txt', 'Open Table:')
>
>thanks
>k

Apologies - Antonio lopes had answered this query for me last year - I just found it.

TRY
m.lcFilePath = LOCFILE("C:\backups\TP*.dbf","Table:DBF","Import Table:")
CATCH
m.lcFilePath = ""
ENDTRY

MESSAGEBOX(m.lcFilePath)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform