Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getfile search for name
Message
From
27/02/2016 03:31:56
 
 
To
26/02/2016 22:26:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01632187
Message ID:
01632190
Views:
82
This message has been marked as the solution to the initial question of the thread.
>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)
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform