PRB: Recursive Use of AddressOf Operator Fails (192257)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q192257 SYMPTOMS
If you use "AddressOf MyFunc" in the function, or Subroutine "MyFunc" in
the standard module, Visual Basic compiler will generate an error message:
"Expected Sub, Function, or Property"
RESOLUTION
Include the module name when you use the AddressOf Operator. For example,
use:
AddressOf MyModule.MyFunc
instead of:
AddressOf MyFunc
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: | kbprb KB192257 |
---|
|