Description: it's old issue, see https://bz.apache.org/ooo/show_bug.cgi?id=30692 changing the current working directory with the runtime function ChDir in the Basic IDE has no effect on the current directory and is even not really inspected by the Interpreter, for example.. Steps to Reproduce: run macro from attached file Actual Results: Current directory: /home/zdenek/Plocha/bibisect/bibisect-41max Current dir: /home/zdenek/Plocha/bibisect/bibisect-41max Expected Results: Current directory: /home/zdenek/Plocha/bibisect/bibisect-41max Current dir: /tmp/zkouska/aa Reproducible: Always User Profile Reset: No Additional Info:
(In reply to raal from comment #0) > Steps to Reproduce: > run macro from attached file The attachment seems missing ;-)
I don't see the attachment either. BTW, Reminder to myself: https://opengrok.libreoffice.org/xref/core/basic/source/runtime/methods.cxx?r=7ddedd25#349 https://opengrok.libreoffice.org/xref/core/basic/source/runtime/methods.cxx?r=7ddedd25#417
Quoted from https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide/Files_and_Directories_%28Runtime_Library%29 "Some DOS-specific file and directory functions are no longer provided in Apache OpenOffice, or their function is only limited. For example, support for the ChDir, ChDrive and CurDir functions is not provided. Some DOS-specific properties are no longer used in functions that expect file properties as parameters (for example, to differentiate from concealed files and system files). This change became necessary to ensure the greatest possible level of platform independence for Apache OpenOffice." The bug report for updating the documentation is bug 128784.
Created attachment 156222 [details] test file
note:from https://www.openoffice.cz/navody/programovanie-makier-v-libreoffice-funkcia-chdir
(In reply to Regina Henschel from comment #3) > Quoted from > https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide/ > Files_and_Directories_%28Runtime_Library%29 > > "Some DOS-specific file and directory functions are no longer provided in > Apache OpenOffice, or their function is only limited. For example, support > for the ChDir, ChDrive and CurDir functions is not provided. Some > DOS-specific properties are no longer used in functions that expect file > properties as parameters (for example, to differentiate from concealed files > and system files). This change became necessary to ensure the greatest > possible level of platform independence for Apache OpenOffice." > > The bug report for updating the documentation is bug 128784. Then let's close this.