summaryrefslogtreecommitdiff
path: root/wizards/source/tools/Strings.xba
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2001-05-04 14:15:30 +0000
committerBehrend Cornelius <bc@openoffice.org>2001-05-04 14:15:30 +0000
commit0aa1eda1a2af438d7061ba2a6d53866141f5fda6 (patch)
tree81b25654aab1365b6172a31c1ac043f08fd5d09d /wizards/source/tools/Strings.xba
parent6dca4e2d819ea121096ba1be8ab18c5307a901f7 (diff)
## several changes
Diffstat (limited to 'wizards/source/tools/Strings.xba')
-rw-r--r--wizards/source/tools/Strings.xba7
1 files changed, 3 insertions, 4 deletions
diff --git a/wizards/source/tools/Strings.xba b/wizards/source/tools/Strings.xba
index c478804e5f08..2e70535b9d49 100644
--- a/wizards/source/tools/Strings.xba
+++ b/wizards/source/tools/Strings.xba
@@ -58,7 +58,6 @@ Dim BigLen%,PreLen%,PostLen%
End Function
-
&apos; Deletes the String &apos;SmallString&apos; out of the String &apos;BigString&apos;
&apos; in case SmallString&apos;s Position in BigString is right at the end
Function RTrimStr(ByVal BigString, SmallString as String) as String
@@ -247,7 +246,7 @@ Dim Separator as String
sProductname = GetProductname()
End If
If BigString &lt;&gt; &quot;&quot; Then
- If Instr(1,sProductname,&quot;Sun Webtop&quot;) = 0 Then
+ If IsFatOffice() Then
Separator = GetPathSeparator()
&apos; Is the delivered Path already a URL
If Instr(1,UCase(BigString),&quot;FILE:///&quot;) = 0 Then
@@ -333,10 +332,10 @@ Dim SepList() as String
End Function
-Function DirectorynameoutofPath(sPath as String, Separator as String) as String
+Function DirectoryNameoutofPath(sPath as String, Separator as String) as String
Dim LocFileName as String
LocFileName = FileNameoutofPath(sPath, Separator)
- DirectoryNameoutofPath = DeleteStr(sPath, Separator &amp; LocFileName)
+ DirectoryNameoutofPath = RTrimStr(sPath, Separator &amp; LocFileName)
End Function