
Originally Posted by
moynzzee
erm do you mean a global variable? if so how do i go about setting it up? iv only started rogramming recently as part of my ict class, and had a few lessons so fr, so tryin to do a crash course!
No I don't mean a global variable. I mean just what I said. A variable declared inside a method (Sub, Function or the Get or Set of a property) is a "local variable" while anything declared outside is a "member variable", also known as a "field". Any properties, methods, events, non-local variables, etc, that you declare within a type, e.g. a form, are all known as members. E.g.
vb.net Code:
Public Class SomeType
Private memberVariable As Object
Public Sub SomeMethod()
Dim localVariable As Object
End Sub
End Class