You can set the locale used for controlling the formatting numbers, dates and currencies in LibreOffice Basic in LibreOffice - PreferencesTools - Options - Languages and Locales - General. In Basic format codes, the decimal point (.) is always used as placeholder for the decimal separator defined in your locale and will be replaced by the corresponding character.
同样适用于日期、时间和货币格式的区域设置。Basic 格式的代码的解释和显示将遵循您的区域设置。
错误代码:
5 无效的过程调用
示例:
Sub ExampleFileDateTime
MsgBox FileDateTime("C:\autoexec.bat")
End Sub