FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveLinux / FiveDroid (Android) Can you pass a file pattern to cGetFile()
Posts: 464
Joined: Tue May 16, 2006 07:47 AM
Can you pass a file pattern to cGetFile()
Posted: Tue Mar 04, 2008 10:51 AM
Hi Antonio

I just started trying the cGetFile() function. Looks great but I would like to be able to pass it a filter, For example if I just wanted .dbf files I would like to be able to do something like

sChosenFile := cGetFile( " *.dbf"  )


Is this possible?

Thanks
Doug
(xProgrammer)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Can you pass a file pattern to cGetFile()
Posted: Tue Mar 04, 2008 04:25 PM
Try this:

cDbf = CGETFILE( "File DBF (*.DBF)|*.DBF", "Apri tabella...", , CURDRIVE() + ":\" + CURDIR() )


EMG
Posts: 464
Joined: Tue May 16, 2006 07:47 AM
Can you pass a file pattern to cGetFile()
Posted: Wed Mar 05, 2008 11:05 AM

Thanks for the suggestion but it didn't work. Remember we are talking Linux here.

Regards
Doug
(xProgrammer)

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Can you pass a file pattern to cGetFile()
Posted: Wed Mar 05, 2008 01:13 PM

Ops! Sorry.

EMG

Continue the discussion