Hello One and All,
Just thought I should share with you all the outcome of an "out of memory" investigation that has been conducted by my department - names withheld to protect the guilty as sin...
Visual Basic has a limit on the number of identifiers that can be used in the same project, which appears to be 32,000. That's identifiers across the entire project by the way - not just those in scope at any particular time (32,000 in scope would be way too scary anyway!!!).
This is where it gets interesting though - multilple use of any particular identifier only seems to count once in this count - the moral of the story therefore being to try to reuse identifier names on large projects.
Our own main project (again, nameless...) heralds from the VB2-3 days, when you couldn't have two labels with the same idenitifier in the same module. Since we have error checking in absolutely every single function / procedure we write, this meant we had about 5'600 identifiers being used by On Error alone. (We developed a habit of making the Error label reflect the function name so as to prevent trying to reuse them).
We are now aiming to standardise all future development to use certain identifiers whereever possible. For example, cnt will be the first choice of variable name for a counter etc...
mmilan
Just thought I should share with you all the outcome of an "out of memory" investigation that has been conducted by my department - names withheld to protect the guilty as sin...
Visual Basic has a limit on the number of identifiers that can be used in the same project, which appears to be 32,000. That's identifiers across the entire project by the way - not just those in scope at any particular time (32,000 in scope would be way too scary anyway!!!).
This is where it gets interesting though - multilple use of any particular identifier only seems to count once in this count - the moral of the story therefore being to try to reuse identifier names on large projects.
Our own main project (again, nameless...) heralds from the VB2-3 days, when you couldn't have two labels with the same idenitifier in the same module. Since we have error checking in absolutely every single function / procedure we write, this meant we had about 5'600 identifiers being used by On Error alone. (We developed a habit of making the Error label reflect the function name so as to prevent trying to reuse them).
We are now aiming to standardise all future development to use certain identifiers whereever possible. For example, cnt will be the first choice of variable name for a counter etc...
mmilan