Invokes a dialogue to select a directory.
Call(‘GxSelDir’, selected, defpath, caption[, ret-value]) | [ret-value =] GxSelDir(selected, defpath, caption)
Where:
selected
Character type. Is the output selected directory.
defpath
Character type. Is the input default directory.
caption
Character type. Is the dialog 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 'SelDir'
&defpath = 'c:\files'
&caption = 'Select a directory'
Call('GxSelDir', &selected, &defpath, &caption)
EndEvent
Event 'SelDir'
&defpath = 'c:\files'
&caption = 'Select a directory'
&ret = GxSelDir(&selected, &defpath, &caption)
EndEvent
Common dialog functions