Passing By Reference myfunc(ByRef <x>) 
Author Message
 Passing By Reference myfunc(ByRef <x>)

I would like to create my objects once and pass them to
procedures and functions by reference.  Do I need to
prefix my variables with Ref or is the default by
reference?


Tue, 09 Nov 2004 23:49:11 GMT  
 Passing By Reference myfunc(ByRef <x>)
ByRef is the default.

--

------------------------------------
Make Unlimited phone calls from your PC to ANY phone in the World!
http://www.eboom.com/free/

Quote:
> I would like to create my objects once and pass them to
> procedures and functions by reference.  Do I need to
> prefix my variables with Ref or is the default by
> reference?



Wed, 10 Nov 2004 02:53:31 GMT  
 Passing By Reference myfunc(ByRef <x>)
Norman,
Actually it is impossible to pass an object to a function "by val" unless
you write your own functions to manually create a copy of your object.  Even
if you use the "By Val" qualifier the object is passed "By Ref"

Dan


Quote:
> I would like to create my objects once and pass them to
> procedures and functions by reference.  Do I need to
> prefix my variables with Ref or is the default by
> reference?



Wed, 10 Nov 2004 03:13:46 GMT  
 Passing By Reference myfunc(ByRef <x>)
Thanks guys.  I'm starting to like this group.
Quote:
>-----Original Message-----
>Norman,
>Actually it is impossible to pass an object to a

function "by val" unless
Quote:
>you write your own functions to manually create a copy of
your object.  Even
>if you use the "By Val" qualifier the object is
passed "By Ref"

>Dan



>> I would like to create my objects once and pass them to
>> procedures and functions by reference.  Do I need to
>> prefix my variables with Ref or is the default by
>> reference?

>.



Sun, 14 Nov 2004 01:08:26 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. <<<<<<<<ComboBox>>>>>>>>>>>>

2. HELP >>>>>>WIN API <<<<<<<<<<

3. help me out please!!!!<<<<<<<<<<<<<<<<<<<<<<<thanks>>>>>>>>>>>>>>>>>>>>>>>>

4. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

5. <<<<HELP- OLE container Control>>>>>>>>>

6. <<<<Obtaining A ProcessID From An Object Reference>>>>

7. VB5<->RDO2<->ODBC<->ORACLE Procedure Problem

8. <<<Cneck Box>>>

9. <<<Gif Files>>>

10. <<<CD ROM>>>

11. <<<Win32Api.TXT>>>

12. <<<NetWork Drv>>>

 

 
Powered by phpBB® Forum Software