Should I use multiple lists to contain separate information?

  • Thread starter Thread starter AU Gridlock
  • Start date Start date
A

AU Gridlock

Guest
Hi,

I have created 3 lists with the purpose of containing some information as follows:
Dim lst1 as list (of string) = new list (of string)
Dim lst2 as list (of integer) = new list (of integer)
Dim lst3 as list (of List (of string)) = list (of List (of string))

The reason is that I will manage it fairly easily, for example if I want to delete the corresponding elements I just need to write the code:

lst1.removeat (i)
lst2.removeat (i)
lst3.removeat (i)

However I find them quite bulky.
I am not familiar with organizing code. I think I should create a class for this case but it's quite strange to me. Should i do that?
In your opinion, how should I do it!
It would be great if there was a small example so I could learn from it.
Thanks for advices!

Continue reading...
 
Back
Top