hi everyone! i have a field in a form where user will need to input a directory path...or, the user can also click the assist button, then a window will pop out where he can select the path (similar to when you click a 'Save as' button in most applications, a window pops out from where the user select the path)...are there built-in functions for this?
thanks!...i hope someone can help
Comments
RIS Plus, LLC
gstrFileName := gmdlCommonDialog.OpenFile('My Directory',
'',
0,
'',
goptAction::Save);
IF gstrFileName <> '' THEN
"My Directory" := gstrFileName;
...where gstrFielName is a text variable, goptAction is an option with the values "Open,Save", and gmdlCommonDialog is codeunit 412 (Common Dialog Management).
Tres Tria Limited
For example, if you use the "openfile" function to save a file, and you click cancel, the dialog will still return a path and filename(if it was filled in).
If you want the openfile to raise an error when the user clicks cancel then add the following line...
CommonDialogControl.CancelError := TRUE;
...but I did warn you, it's an ugly error, and you cannot customize it.
regards,
gus
http://www.mibuso.com/dlinfo.asp?FileID=531
http://home.casema.nl/mvandermeij
Have a check on the download page in a day or two when webmaster makes it ready.
http://www.BiloBeauty.com
http://www.autismspeaks.org