The information in this article applies to:
SUMMARY
Using a Microsoft Visual Basic 3.0 application, you cannot pass parameters
"by reference." Visual Basic passes all parameters "by value."
WORKAROUNDThe quickest way to workaround this limitation is to surround the parameter being passed with parantheses, "()". For example:
passes the parameter by reference (default). Changing the command to:
forces the parameter to be passed by value. This will return the evaluated
value.
MORE INFORMATION
When a value is passed as an argument to a subroutine by value, a copy
of the data is passed to the subroutine. If the subroutine should
alter the data, the variable in the calling subroutine will go
untouched since it is working with copy of the data.
Additional query words: 6.0 ole automation word object word6 7.0 word95 winword container position visual basic vb word7
Keywords : |
Last Reviewed: December 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |