Invokes a dialogue to create a new file.
Call(‘GxNewFile’, selected, initpath, defname, extens, caption[, ret-value]) | [ret-value =] GxNewFile(selected, initpath, defname, extens, caption)
Where:
selected
Character type. Is the output selected file name.
initpath
Character type. Is the input default path for search.
defname
Character type. Is the input default file name.
extens
Character type. Is the input extension filter and default extension.
caption
Character type. Is the input file name edit box 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, Standard Functions property at Object level must be set with the value “Allow non-standard functions”.
Event 'NewFile'
&initpath = 'c:\files'
&defname = ''
&extens = 'exe'
Call('GxNewFile', &selected, &initpath, &defname, &extens, &caption)
EndEvent
Event 'NewFile'
&inipath = 'c:\files'
&defname = ''
&extens = 'exe'
&ret = GxNewFile(&selected, &initpath, &defname, &extens, &caption)
EndEvent
Common dialog functions