How to get Windows standard "Save As" dialogue box

How to get Windows standard "Save As" dialogue box

Postby hua » Sun Mar 01, 2009 5:32 pm

I can't remeber right now how this is done. Is it by calling cGetFile() and passing some flags?

TIA.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: How to get Windows standard "Save As" dialogue box

Postby mmercado » Sun Mar 01, 2009 6:25 pm

hua wrote:I can't remeber right now how this is done. Is it by calling cGetFile() and passing some flags?

Hi Hua:

Here you are a little working sample:
Code: Select all  Expand view
#include "FiveWin.ch"

Function Main()

   Local cNewName, ;
         cMask     := "Databases (*.dbf)|*.dbf|All files (*.*)|*.*", ;
         cTitle    := "Select the database", ;
         cFolder   := "c:\fwh\samples", ;
         cFilename := "customer.dbf", ;
         lSave     := .T.

   cNewName := cGetFile( cFilter, cTitle,, cFolder, lSave,,, cFileName )
   ?cNewName

Return Nil
Regards

Manuel Mercado
manuelmercado at prodigy dot net dot mx
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: How to get Windows standard "Save As" dialogue box

Postby hua » Mon Mar 02, 2009 1:26 am

Thank you Manuel.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 84 guests