Scorpion Posted March 13, 2013 Share Posted March 13, 2013 (edited) I've tried googling but can not think on how to describe it to get the results i want. My Program will be having a lot of variables in it (mostly Arrays) but i remember doing a look time ago being able to create my own sub that had variables in it. then i could just declare that one variable on the form for the array rather than like 10 variables with arrays. Dim Details(20) As MyOwnFunction inside MyOwnFunction Dim Name As String Dim Phone As String Dim Text As String And So On Then asking for it i can just do Details(1).Name = textbox1.text.toString Thats how i would want to do it but cant find the code for the first bit. I dont want to declare Dim Name(20) As String Dim Phone(20) As String And so on Hopefully this makes sense and you can understand what im trying to do, plus why i couldnt think how to ask this in to google. Please help me :) Edited March 13, 2013 by Scorpion Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.