Hi All,
Its in NAV 2013. I want to open a file open dialog and choose the any file and return the path back to the system and store in a control.something like how Links will work.
but after writing the below code am getting an error like
"The Common dialog function failed during initiazation.
this error often occurs when insufficient memory is available"
FileDialog -> OCX ->Microsoft Common Dialog Control, version 6.0
IF Title <> '' THEN
FileDialog.DialogTitle := Title;
IF StartDir <> '' THEN
FileDialog.InitDir := StartDir;
IF Filter <> '' THEN
FileDialog.Filter := Filter;
FileDialog.ShowOpen;
Return := FileDialog.FileName;
kindly help to solve this please
Answers
You need to use the CU 419 File Management.
There is a function called OpenFileDialog (WindowTitle : Text[50];DefaultFileName : Text;FilterString : Text) : Text
It uses dotnet datatypes instead of OCX.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
thats works perfectly fine.. thanks a ton..
tsv
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n