The information in this article applies to:
SYMPTOMSIn VBScript, when a variable is dimmed that already has a value assigned to it, no error appears. STATUSThis behavior is by design. MORE INFORMATIONThe following VBScript function, when executed, does not produce an error regarding duplicate declaration, on the statement "dim y". Steps to Reproduce Behavior
In VBScript, this runs with no error. In Visual Basic for Applications
(VBA), however, you get a compile error on the line "dim y" saying
"duplicate declaration in current scope."
Additional query words: Error dim duplicate
Keywords : kbIE300 kbIE301 kbIE400 kbScript kbVBScript kbIE302 kbIE500 |
Last Reviewed: April 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |