Microsoft KB Archive/191216

= DOC: CallByName Documentation Error =

Article ID: 191216

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q191216



SUMMARY
The documentation for the CallByName function states that the first parameter is the "name of the object on which the function will be executed." This may be misleading when you use it with properties and methods of a Class. If you use CallByName with the properties and methods of a Class, the first parameter is actually an object variable reference and not the name of the Class. The object must be instantiated prior to using CallByName.

Keywords: kbdocerr KB191216

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.