Dialogo "Examinar" al igual que en el xp (SOLUCIONADO)

Dialogo "Examinar" al igual que en el xp (SOLUCIONADO)

Postby goosfancito » Mon Mar 23, 2009 1:52 pm

Hola.

Tengo un boton "examinar" y no me acuerdo como se llama el metodo que abre para poder seleccionar un archivo del disco... podrían decirme?

gracias.
Last edited by goosfancito on Tue Apr 07, 2009 4:12 am, edited 1 time in total.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: Dialogo "Examinar" al igual que en el xp

Postby FranciscoA » Mon Mar 23, 2009 2:39 pm

cGetFile( <cFileMask>, <cTitle>, [<nDefaultMask>], [<cInitialDirectory>], [lSave], [lLongNames], [nFlags] ) \\ <cFileName>

This function invokes the Windows default select a file DialogBox.

Parameters:
<cFileMask> A string that contains a default filename, or a list of possible file types to select:

? cGetFile( "Hello.prg", "Select a file" )
In this case "Hello.prg" is shown as the default filename.

If you want to specify some different types of files the following format must be used:

"DataBase | *.dbf |" + ;
"Index | *.cdx |" + ;
"Bitmap | *.bmp"

<cTitle> The title of the DialogBox. By default "Select a file" is shown.

<nDefaultMask> An optional numeric value in case that you want to start the DialogBox with a certain file type selected (if you are using the multiple file types format). To request lately what was the file type selected, you may use the function nGetFileFilter().

<cInitialDirectory> The initial directory where to start looking for files. By default it uses ".\\"

<lSave> If true then the SaveFilename dialog will be displayed

<lLongNames> If true then then the dialog will show the files with his longname format

<nFlags> Special flag to use on the dialog (consult WinAPI documentation)


Returns:
A string with the name of the filename selected.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2111
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: Dialogo "Examinar" al igual que en el xp

Postby goosfancito » Mon Mar 23, 2009 3:27 pm

GRACIASSSSSSSSSSSS!

esto en otro foro no se ve.
la velocidad. jeje


FranciscoA wrote:cGetFile( <cFileMask>, <cTitle>, [<nDefaultMask>], [<cInitialDirectory>], [lSave], [lLongNames], [nFlags] ) \\ <cFileName>

This function invokes the Windows default select a file DialogBox.

Parameters:
<cFileMask> A string that contains a default filename, or a list of possible file types to select:

? cGetFile( "Hello.prg", "Select a file" )
In this case "Hello.prg" is shown as the default filename.

If you want to specify some different types of files the following format must be used:

"DataBase | *.dbf |" + ;
"Index | *.cdx |" + ;
"Bitmap | *.bmp"

<cTitle> The title of the DialogBox. By default "Select a file" is shown.

<nDefaultMask> An optional numeric value in case that you want to start the DialogBox with a certain file type selected (if you are using the multiple file types format). To request lately what was the file type selected, you may use the function nGetFileFilter().

<cInitialDirectory> The initial directory where to start looking for files. By default it uses ".\\"

<lSave> If true then the SaveFilename dialog will be displayed

<lLongNames> If true then then the dialog will show the files with his longname format

<nFlags> Special flag to use on the dialog (consult WinAPI documentation)


Returns:
A string with the name of the filename selected.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 10 guests