summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2001-08-10 14:17:22 +0000
committerBehrend Cornelius <bc@openoffice.org>2001-08-10 14:17:22 +0000
commitbf45690763f77257449e7a65e6c740033e3217f8 (patch)
tree6939f20bc5a39cbbca2020f58d9acc0caaab0d77 /wizards
parente1a10ae1e963e0967560ed414a5d7582f5d86eeb (diff)
#87732# Addlisttolist Function added
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/tools/Strings.xba23
1 files changed, 23 insertions, 0 deletions
diff --git a/wizards/source/tools/Strings.xba b/wizards/source/tools/Strings.xba
index 2b1c4c9f022f..d077ec0e10da 100644
--- a/wizards/source/tools/Strings.xba
+++ b/wizards/source/tools/Strings.xba
@@ -454,4 +454,27 @@ Dim MaxIndex as Integer
End If
Next i
End Function
+
+
+Function AddListtoList(ByVal FirstArray(), ByVal SecondArray(), Optional StartIndex)
+Dim n as Integer
+Dim m as Integer
+Dim MaxIndex as Integer
+ MaxIndex = Ubound(FirstArray()) + Ubound(SecondArray()) + 1
+ If MaxIndex &gt; -1 Then
+ Dim ResultArray(MaxIndex)
+ For m = 0 To Ubound(FirstArray())
+ ResultArray(m) = FirstArray(m)
+ Next m
+ For n = 0 To Ubound(SecondArray())
+ ResultArray(m) = SecondArray(n)
+ m = m + 1
+ Next n
+ AddListToList() = ResultArray()
+ Else
+ Dim NullArray()
+ AddListToList() = NullArray()
+ End If
+End Function
+
</script:module> \ No newline at end of file