Text Documents (Writer)
HTML Documents (Writer Web)
Spreadsheets (Calc)
Presentations (Impress)
Drawings (Draw)
Database Functionality (Base)
Formulae (Math)
Charts and Diagrams
Macros and Scripting
Office Installation
Common Help Topics
OneOffice Logo

GetPathSeparator Function

Returns the operating system-dependent directory separator used to specify file paths.

Syntax:

GetPathSeparator()

Return value:

String

  • "\" Windows
  • "/" UNIX, including MacOS

Parameters:

None.

Error codes:

5 Invalid procedure call

Example:


        Sub ExampleGetPathSeparator
            MsgBox GetPathSeparator()
        End Sub