Invokes a dialogue to select a picture.
Syntax
Call(‘GxSelPict’, selected, initpath, extens, caption, buttcap[, ret-value]) | [ret-value =] GxSelPict(selected, initpath, extens, caption, buttcap)
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.
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)
In order to use the second syntax, the Standard Functions property at Object level must be set with the value “Allow non-standard functions”.
Event 'SelPicture'
&inipath = ‘c:\images’
&extens = '*.bmp'
&caption = ‘Pictures’
Call('GxSelPict', &selected, &initpath, &extens, &caption, &buttcap)
EndEvent
Event 'SelPicture'
&inipath = ‘c:\images’
&extens = '*.bmp'
&caption = ‘Pictures’
&ret = GxSelFile(&selected, &initpath, &extens, &caption, &buttcap)
EndEvent
Common dialog functions