FIX: "Invalid Procedure Call" Referencing Collection Item (159410)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q159410 SYMPTOMS
If you reference a collection object created by an out-of-process OLE
server with a variable index and the index variable is specified as an
Integer or Long in a Dimension statement, the following error appears:
"Invalid Procedure Call"
RESOLUTION
Make sure that the index variable is specified as Variant in the Dimension
statement.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic 6.0.
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbbug kbfix kbprb KB159410 |
---|
|