summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2002-07-10 14:41:59 +0000
committerBehrend Cornelius <bc@openoffice.org>2002-07-10 14:41:59 +0000
commit867a800d5bf249d732fcbb6480c0ee5e1e7d1a15 (patch)
tree45b509ca03384023f39991eff09ac2e203b07383 /wizards
parentf8d27c7d19ee1661aefebb8a6503964a505d64cb (diff)
#100987# Sub ArrayfromMultiArray added
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/tools/Strings.xba12
-rw-r--r--wizards/source/tools/UCB.xba2
-rw-r--r--wizards/source/tools/script.xlb2
3 files changed, 14 insertions, 2 deletions
diff --git a/wizards/source/tools/Strings.xba b/wizards/source/tools/Strings.xba
index 553fffd2eb32..35122eff1da9 100644
--- a/wizards/source/tools/Strings.xba
+++ b/wizards/source/tools/Strings.xba
@@ -268,6 +268,18 @@ Dim CurFieldValue
End Function
+Function ArrayfromMultiArray(MultiArray as String, iDim as Integer)
+Dim MaxIndex as Integer
+Dim i as Integer
+ MaxIndex = Ubound(MultiArray())
+ Dim ResultArray(MaxIndex) as String
+ For i = 0 To MaxIndex
+ ResultArray(i) = MultiArray(i,iDim)
+ Next i
+ ArrayfromMultiArray() = ResultArray()
+End Function
+
+
&apos; Replaces the string &quot;OldReplace&quot; through the String &quot;NewReplace&quot; in the String
&apos; &apos;BigString&apos;
Function ReplaceString(ByVal Bigstring, NewReplace, OldReplace as String) as String
diff --git a/wizards/source/tools/UCB.xba b/wizards/source/tools/UCB.xba
index 9e03138bdb78..020a26a096fa 100644
--- a/wizards/source/tools/UCB.xba
+++ b/wizards/source/tools/UCB.xba
@@ -209,7 +209,7 @@ Dim oStreamString as Object
Dim oUcb as Object
Dim sCRLF as String
- sCRLF = CHR(10) &amp; CHR(13)
+ sCRLF = CHR(13) &amp; CHR(10)
oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
oOutputStream = createUnoService(&quot;com.sun.star.io.TextOutputStream&quot;)
If oUcb.Exists(FilePath) Then
diff --git a/wizards/source/tools/script.xlb b/wizards/source/tools/script.xlb
index c107f2c9bfb6..fe4d74d60332 100644
--- a/wizards/source/tools/script.xlb
+++ b/wizards/source/tools/script.xlb
@@ -7,4 +7,4 @@
<library:element library:name="UCB"/>
<library:element library:name="Listbox"/>
<library:element library:name="Debug"/>
-</library:library>
+</library:library> \ No newline at end of file