Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15621

[RESOLVED] VB ADD-INS for analyzing variable names

$
0
0
I never use Add-Ins, but reading around I understand people are using it.
one Add-ins that I would love to have is something like this:

- a variable analyzer
will check all variables, public or private and see if those are used at all and if different modules uses the same variable and inform me theres a doublet.

- a function name and variable analyzer
like the above, if a function, private or public is used in another module, if so, inform me as well, and also, if variables used inside the functions are also used as module variables

example:
Code:

module1
Dim MyVar as Long
Dim ThatVar as Integer
Public OtherVar as Long
Public SameVar as Long

Function MyFunc()
Dim MyVar as Long
OtherVar = OtherVar + 1
End Function

module2
Dim MyVar as Long

Function AnotherFunc()
Dim SameVar as Integer

SameVar = SameVar + 1
End Function

a report will tell:
MyVar is found in module1, module2, module1(MyFunc)
OtherVar in module1 is a Public variable but only used in module1
SameVar in module1 is a Public variable a doublet conflict in module2(AnotherFunc) could cause errors.
ThatVar in module1 is never used.

and so on.
is there ADD-INS that have this?

Viewing all articles
Browse latest Browse all 15621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>