BUG: Ambiguous Name Detection for Private Functions Named "Main" (191693)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q191693 SYMPTOMS
When a Visual Basic project contains two or more functions named "Main"
(but only one is Public) and Sub Main is set as the Startup Object, the
following error is received when the Project is compiled or run:
"Ambiguous name detected: main"
CAUSE
In addition to Public functions, Visual Basic also searches for Private
functions for any name conflict.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbbug kbpending KB191693 |
---|
|