No, as I said, you cannot use the static keyword inside a procedure. To make a static variable the entire procedure must be static:
Code:private static void somefunc() { int calls = 0; //this var is static } private void somefunc() { static int callls = 0; //this is a syntax error }




Reply With Quote