Collections... <RESOLVED>
Hiya doin vb ppl?
Ok, got a lot of questions here... I just moved from vb6 to vb.net... and was wondering about a lot of stuff!!!
K, first of all, in VB6 there were collections...
for instance, you could have 60 textbox with the same name
and do a quick call with formulas for the index... for example:
VB Code:
For tmpval = 1 To 20 Step 2
txtBox(tmpval).Text = "Number: " & Str(tmpval * 2)
Next tmpval
For tmpval = 1 To 20
If txtBox(tmpval).Text = "" Then txtBox(tmpval).Text = "Unknown number!"
Next tmpval
... you get the idea... now the collection (index property) IS NO MORE!!!!!!! How can I manipulate my objects with formulas now... :eek: ???
And if you have any tips on other problems I might encounter coz Im moving from vb6 to .net, please post em rigt away.... plus I noticed that vb.net had a lot of "friends" everywhere!!! like as friendly and stuff... uh, WHAT? lol, post me back ppl!
Oh yeah, I was also wondering how you could notice if an object is loaded...?
because my method, well, sucks:
I try to load an object, if an error occurs, and the error corresponds with the object bering allready loaded, than it resumes and continue another proces... but this method causes the program to do an error and isn't effective to my opinion, is there any other logical way to do it??? (I did that in vb6, now im lost with the index/collection disapearing and stuff...!):blush: