blob: d4c63c53621b27b7ff126762796a6abb3b282477 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
-->
<meta>
<topic id="org.Libre.Libreries.GetPathSeparator.en" indexer="include" status="PUBLISH">
<title id="tit">Libre Librәries : GetPathSeparator function</title>
<filename>/text/sbasic/shared/GetPathSeparator.xhp</filename>
</topic>
</meta>
<body>
<bookmark branch="index" id="N0001">
<bookmark_value>GetPathSeparator function</bookmark_value>
</bookmark>
<section id="getpathseparator">
<paragraph role="heading" level="1" id="N0002"><link href="text/sbasic/shared/GetPathSeparator.xhp" name="GetPathSeparator">GetPathSeparator Function</link></paragraph>
<paragraph role="paragraph" id="N0003">Return the operating system dependent directory separator used to specify file paths.</paragraph>
</section>
<paragraph role="heading" level="2" id="N0004">Syntax:</paragraph>
<paragraph role="bascode" id="N0005">GetPathSeparator()</paragraph>
<paragraph role="heading" level="2" id="N0006">
Return value:
</paragraph>
<paragraph role="paragraph" id="par_id481542894937950" xml-lang="en-US">String</paragraph>
<paragraph role="paragraph" id="N0007">
"\" Windows
</paragraph>
<paragraph role="paragraph" id="N0008">
"/" UNIX, including MacOS
</paragraph>
<paragraph role="heading" level="2" xml-lang="en-US" id="N0009">
Parameters:
</paragraph>
<paragraph role="paragraph" id="N0010">
None.
</paragraph>
<paragraph role="heading" level="2" id="N0011">
Error codes:
</paragraph>
<paragraph role="paragraph" id="N0012">
5 Invalid procedure call
</paragraph>
<paragraph role="heading" level="2" id="N0013">
Example:
</paragraph>
<bascode>
<paragraph role="bascode" id="N0014">Sub ExampleGetPathSeparator</paragraph>
<paragraph role="bascode" id="N0015"> MsgBox GetPathSeparator()</paragraph>
<paragraph role="bascode" id="N0016">End Sub</paragraph>
</bascode>
<section id="relatedtopics" >
<paragraph role="paragraph" id="N0017">
It is recommended to use:
</paragraph>
<paragraph role="paragraph" id="N0018">
<link href="text/sbasic/shared/03120313.xhp" name ="external">ConvertFromURL</link> function to convert a file URL to s system file name.
</paragraph>
<paragraph role="paragraph" id="N0019">
<link href="text/sbasic/shared/03120312.xhp" name ="external">ConvertToURL</link> function to convert a system file name to a file URL.
</paragraph>
<paragraph role="paragraph" id="N0020">
See also <link href="text/sbasic/shared/00000002.xhp" name ="external">URL Notation</link>
</paragraph>
</section>
</body>
</helpdocument>
|