anyone know?
anyone know?
swift through the source and see if it's being called. Search for the name of the function and disregard instances where there's the word "Function" before it or when it's within the function itself.
Do you want to do this through code?
There is free software available which can go through some code and let you know everything that is never used... what I miss about C compilers really - they'll usually always let you know you didn't use something...
There's a few things I hate about VB when compared to C++ here goes:
myVar = MyVar + 1 'Why can't we have a ++ operand for VB?
C++ compilers tell you about unused code
they tell you if type conversion will lose data
if you overflow a variable, the app does not crash. Careful programming usually prevents this, but if it's accounted for, why program around it?
function overloading.
Function MyFunc(inputStr as string)
...code
Function MyFunc(inputStr as Double)
...code
For example
That's a whole other discussion... ;)
And apparently, VB.NET accounts for much of that.
I'm still waiting on it...
so is there a program that checks which functions arent used?
Yeah, but I don't know any specific ones. Have a look at places like C-net.com and do a google search.
:)