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.
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.
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 10 guests