FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Dialogo "Examinar" al igual que en el xp (SOLUCIONADO)
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Dialogo "Examinar" al igual que en el xp (SOLUCIONADO)
Posted: Mon Mar 23, 2009 01: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.

FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: Dialogo "Examinar" al igual que en el xp
Posted: Mon Mar 23, 2009 02: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
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: Dialogo &quot;Examinar&quot; al igual que en el xp
Posted: Mon Mar 23, 2009 03: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/

Continue the discussion