global vs local variable

Global Variables on a VB.NET Web Page

“…Microsoft, in its’ wisdom, has made it easier for VB developers to migrate by automatically translating the “Dim” syntax, when used at class level, to “Private” without even telling you. As you can see, I’m not all that thrilled about it, as it doesn’t help the VB developer to move forward, but instead makes it seem somewhat confusing. In other words, “Dim” is not meaningful at the class level. It isn’t an accessibility modifier, but the compiler will fix it for you without you know what it is doing or why.”

por Vitor Silva

Leave a Reply