|
-
September 28th, 2009, 11:33 AM
#8
Re: How to find unused variables in project
 Originally Posted by bhushan1980
Is there a thing called a Global Variable in VB.NET. I thought that all the variables and functions, belonged to a class and hence called members/methods respectively. Please tell me if I am wrong?
Yes there is such a thing. A variable declared as public in module is a global variable as are subs and functions which are declared as public in a module.
If on the other hand they are declared in a form or other class they are not global but are a member of the class object.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|