PC Review


Reply
Thread Tools Rate Thread

Call by value(and not be reference)!

 
 
qazmlp1209@rediffmail.com
Guest
Posts: n/a
 
      1st Nov 2006
While debugging the macros, I could observe that, all the arguments are
passed by reference to a function. Is there a possibility to call by
value?
Basically, I want to retain the value of a variable before and after
the function call. The function can take a copy and modify the value of
it, but it should not change the value of the originally passed
variable. How exactly it can be done?

 
Reply With Quote
 
 
 
 
qazmlp1209@rediffmail.com
Guest
Posts: n/a
 
      1st Nov 2006
Please ignore my post.

I declared the argument as 'ByVal' and it started working as I wanted.
Thanks!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reference and call a webservice? Big George Microsoft ASP .NET 2 13th Dec 2006 06:07 AM
Re: Call By Value and Call By Reference Jon Skeet [C# MVP] Microsoft C# .NET 0 30th Aug 2004 08:05 PM
Re: Call By Value and Call By Reference Nicholas Paldino [.NET/C# MVP] Microsoft C# .NET 0 30th Aug 2004 04:33 PM
Re: Object Reference Not Set During Call to CreateProcessLogonW Willy Denoyette [MVP] Microsoft C# .NET 1 4th Sep 2003 08:39 AM
Re: Subroutine call without file reference jaf Microsoft Excel Programming 0 25th Aug 2003 05:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:10 PM.