Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getfile search for name
Message
From
27/02/2016 12:14:57
 
 
To
27/02/2016 03:31:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01632187
Message ID:
01632205
Views:
48
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform