S
shawncraig
I'm sure I'm just missing something here but is there a way to nest
objects inside an object or a collection that functions like an object
with properties BESIDES creating whole classes or making public
variables?
Private Sub Click()
Dim x as SomeSortOfCollection
msg box(x.Name & " " & x.Phone)
End Sub
Private Function Person() as SomeSortOfCollection
Dim Name as String= "John"
Dim Phone as String = "888-888-8888"
Person.Add(Name)
Person.Add(Phone)
End Function
What I'm not looking for:
Anything using a for each method
Using a key value like SomeObject("Name").value
objects inside an object or a collection that functions like an object
with properties BESIDES creating whole classes or making public
variables?
Private Sub Click()
Dim x as SomeSortOfCollection
msg box(x.Name & " " & x.Phone)
End Sub
Private Function Person() as SomeSortOfCollection
Dim Name as String= "John"
Dim Phone as String = "888-888-8888"
Person.Add(Name)
Person.Add(Phone)
End Function
What I'm not looking for:
Anything using a for each method
Using a key value like SomeObject("Name").value