Can you pass a file pattern to cGetFile()

Post Reply
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Can you pass a file pattern to cGetFile()

Post by xProgrammer »

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

Code: Select all

sChosenFile := cGetFile( " *.dbf"  )
Is this possible?

Thanks
Doug
(xProgrammer)
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Can you pass a file pattern to cGetFile()

Post by Enrico Maria Giordano »

Try this:

Code: Select all

cDbf = CGETFILE( "File DBF (*.DBF)|*.DBF", "Apri tabella...", , CURDRIVE() + ":\" + CURDIR() )
EMG
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Post by xProgrammer »

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

Regards
Doug
(xProgrammer)
Post Reply