Invokes a dialogue to select a file.
1) Call(‘GxSelFile’, selected, initpath, extens, caption, buttcap, butttype [, ret-value]) |
2) [ret-value =] GxSelFile(selected, initpath, extens, caption, buttcap, butttype)
Where:
selected
Character type. Is the output selected file name.
initpath
Character type. Is the input default path for search.
extens
Character type. Is the input extension filter and default extension.
caption
Character type. Is the input file name edit box caption.
buttcap
Character type. Is the input select button caption.
butttype
Numeric type. Is the input flags for enabled button on dialog.
ret-value
Numeric type. Is the error code returned by the function.
Type Returned:
Numeric
Objects: Procedure, Transaction, Work Panel
Generators: .NET, Java, Visual FoxPro (up to GeneXus X Evolution 3)
Event 'SelFile'
&initpath = ‘c:\logs’
//&extens = '*.txt' //No funciona en Gx9
&extens = 'Archivo de Texto|*.txt'
&caption = ‘Logs’
&buttcap = ‘Select’
Call('GxSelFile', &selected, &initpath, &extens, &caption, &buttcap, &butttype)
EndEvent
Event 'SelFile'
&initpath = 'c:\logs’
//&extens = '*.txt' //No funciona en Gx9
&extens = 'Archivo de Texto|*.txt'
&caption = ‘Logs’
&buttcap = ‘Select’
&ret = GxSelFile(&selected, &initpath, &extens, &caption, &buttcap, &butttype)
EndEvent
Common dialog functions