M
mtczx232
it's posible that Function return byref? what the syntax?
it's posible that Function return byref? what the syntax?
it's posible that Function return byref? what the syntax?
I ask about
Function GetFoo(byref MyVar As Type) byref As Type
return MyVar
End Function
So the function return reference instead value. Like we do in C++
My target is to send this return ref as argument to another procedure
like that: sub(byref x)
I ask about
Function GetFoo(byref MyVar As Type) byref As Type
return MyVar
End Function
So the function return reference instead value. Like we do in C++
My target is to send this return ref as argument to another procedure
like that: sub(byref x)
It does make sense - it's really just reference vs value type semantics.
For reference types, you get the behavior that the OP wants. For value
types you don't (try returning a value type object from a function - a change
to the value returned from the function doesn't affect the original value).
--
David Antonwww.tangiblesoftwaresolutions.com
Convert between VB, C#, C++, and Python
Instant C#
Instant VB
Instant C++
Instant Python
C++ to C# Converter
C++ to VB Converter