Official Content

Deprecated. : Since GeneXus 15.

Invokes a dialogue to select a file.

Syntax

1) Call(‘GxSelFile’, selected, initpath, extens, caption, buttcap, butttype, ret-value) | ret-value =

2) 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

Note: In order to use the second syntax,the Standard Functions property at Object level must be set with the value “Allow non-standard functions”.

Scope

Objects: ProcedureTransactionWork Panel
Generators: .NET, Java, Visual FoxPro (up to GeneXus X Evolution 3)

Samples

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

See Also

Common dialog functions

 

 

 

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant