Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getfile search for name
Message
 
À
27/02/2016 03:31:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01632187
Message ID:
01632205
Vues:
47
>>hi
>>I am trying to search a directory for dbf files that start with TP using getfile
>>Is there a way to display only those files.
>>tnx
>>k
>>
>>lnNum =adir(ladir,'c:\backups\TP*','D')
>>asort(ladir,3) 	
>>mysel = GETFILE('dbf','Import Table:')
>>
>
>You can use LOCFILE(), for that purpose:
>
>TRY
>	m.lcFilePath = LOCFILE("C:\backups\TP*.dbf","Table:DBF","Import Table:")
>CATCH
>	m.lcFilePath = ""
>ENDTRY
>
>MESSAGEBOX(m.lcFilePath)
>
Fantastic!!! Exactly what I was look for. Very cool Antonio - thanks so much.

karen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform