J
Joanne
Hello, I am trying to take the information from two single dimensional arrays
(arrNames and arrExtensions) and combine them into a two dimensional array
(arrPartnerList). The routine seems to work fine until I get to the actual
combination where I assign a value to arrPartnerList. I know my logic is
wrong, or I don't understand two-dimensional arrays. Could somebody point me
in the right direction? Thanks very much.
Public Sub PartnerInfo()
'Declare Arrays for Partner and Extensions
Dim arrNames() As String
Dim arrExtensions() As String
Dim arrPartnerList(3, 3) As String
Dim p As Integer
Dim e As Integer
p = 0
e = 0
For p = 0 To 2
arrNames() = Split("John Smith|Mike Love|William Jones", "|")
strPartner = arrNames(p)
MsgBox strPartner
For e = 0 To 2
arrExtensions() = Split("816|637|5102","|")
strExtensions = arrExtensions(e)
MsgBox strExtensions
arrPartnerList(p, e) = (strPartner, strExtensions)
MsgBox arrPartnerList(p, e)
Next e
Next p
(arrNames and arrExtensions) and combine them into a two dimensional array
(arrPartnerList). The routine seems to work fine until I get to the actual
combination where I assign a value to arrPartnerList. I know my logic is
wrong, or I don't understand two-dimensional arrays. Could somebody point me
in the right direction? Thanks very much.
Public Sub PartnerInfo()
'Declare Arrays for Partner and Extensions
Dim arrNames() As String
Dim arrExtensions() As String
Dim arrPartnerList(3, 3) As String
Dim p As Integer
Dim e As Integer
p = 0
e = 0
For p = 0 To 2
arrNames() = Split("John Smith|Mike Love|William Jones", "|")
strPartner = arrNames(p)
MsgBox strPartner
For e = 0 To 2
arrExtensions() = Split("816|637|5102","|")
strExtensions = arrExtensions(e)
MsgBox strExtensions
arrPartnerList(p, e) = (strPartner, strExtensions)
MsgBox arrPartnerList(p, e)
Next e
Next p