diff options
author | Behrend Cornelius <bc@openoffice.org> | 2001-08-10 14:17:22 +0000 |
---|---|---|
committer | Behrend Cornelius <bc@openoffice.org> | 2001-08-10 14:17:22 +0000 |
commit | 21db7b57cce8b3d5a4092efd0ac09c8fee7f7d9c (patch) | |
tree | 4b59e868400ae7e193c1c1825f29b84013285a01 /wizards/source/tools/Strings.xba | |
parent | 8c02b739dff3d6e46d2019a532680c717874f99a (diff) |
#87732# Addlisttolist Function added
Diffstat (limited to 'wizards/source/tools/Strings.xba')
-rw-r--r-- | wizards/source/tools/Strings.xba | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/wizards/source/tools/Strings.xba b/wizards/source/tools/Strings.xba index 2b1c4c9f0..d077ec0e1 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 > -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 |