The information in this article applies to:
SYMPTOMS
When passing a parameter to a COM Component's method in Active Server Pages
(ASP), the following error occurs:
Or the value stored in the variable passed to the method is not changed. CAUSEVBScript will pass parameters to a method by value if the argument's data type is NOT declared as a variant and the parameter is passed by reference if the argument's data type is declared as variant by the method. RESOLUTIONParameters to be passed by reference to a method should always be declared as a variant data type by the method, while parameters to be passed by value can be declared as any type by the method. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
Change the implementation of the method ByRefMethod as follows:
Additional query words:
Keywords : kberrmsg kbASP kbCOMt KbVBA kbVBp600 kbVBScript kbGrpASP kbCodeSnippet kbiis400 kbiis500 |
Last Reviewed: December 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |