foozball3000
Executive Member
What's the difference?
I know that for small programs, there's no difference and it's then just a matter of preference.
But, yesterday I encountered a weird problem in VB.Net and I'm pretty sure that if I've done my program in C#, that wouldn't happen.
In a For loop, I create a new String()() array. So, I thought that each time the program loops around, the variable will be dropped and recreated. Needless to say, that I didn't have a Values() = Nothing command at the end of my loop... and that was the problem. (Took me hours to find it)
Any thoughts on this?
I know that for small programs, there's no difference and it's then just a matter of preference.
But, yesterday I encountered a weird problem in VB.Net and I'm pretty sure that if I've done my program in C#, that wouldn't happen.
In a For loop, I create a new String()() array. So, I thought that each time the program loops around, the variable will be dropped and recreated. Needless to say, that I didn't have a Values() = Nothing command at the end of my loop... and that was the problem. (Took me hours to find it)
Any thoughts on this?