|
-
October 3rd, 2001, 05:20 PM
#1
Return Parameters in VB
If I want to pass variables into a Visual Basic function and have them updated (passed by reference in C++) how do I do this?
For example:
Dim strMonth
Dim obj
:
:
' Before the function is called strMonth is ""
obj.GetMonth(strMonth)
' Now the value of strMonth is "October"
:
:
what is the format for this syntax? Is it compatible with VBScript? Sorry for the simple question, I can't find the information in the MSDN.
Thanks
Why are the "tolerant" so easy to offend?
-
October 3rd, 2001, 05:21 PM
#2
Re: Return Parameters in VB
Never mind. There is no additional formatting, it's exactly as I posted! I didn't want to try running the component because I thought it might screw itself up on the server, but it actually worked!
Never mind!
Why are the "tolerant" so easy to offend?
-
October 4th, 2001, 08:21 AM
#3
Re: Return Parameters in VB
You can pass variables either byVal or byRef... as you discovered byRef is the default if not specified.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|