I don't remember if this was possible or not in visual basic, but after a forums and google search I didn't find an answer here or there so ill just ask the experts
Is it possible to delcare arrays with variables like this? I tried it but it failed?
Private sub Simpsons()
Dim Homer, Marge as int : 'values to be decided when needed
Homer = mylist.size 'or any other size on fly
Marge = sameAsAbove 'size on demand
Dim bart(bart,Lisa) as string
End sub
Is this possible or is this a fantasy situation? And not possible?
if this is possible how do I do it correctly?
Accidental double post sorry
Is it possible to delcare arrays with variables like this? I tried it but it failed?
Private sub Simpsons()
Dim Homer, Marge as int : 'values to be decided when needed
Homer = mylist.size 'or any other size on fly
Marge = sameAsAbove 'size on demand
Dim bart(bart,Lisa) as string
End sub
Is this possible or is this a fantasy situation? And not possible?
if this is possible how do I do it correctly?
Accidental double post sorry
Last edited: