-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: ranga
Message 1 in Discussion

 
Problem of getting the value in the byref argument(function which accepts the byref 
argument exists in a dotnet dll): 
  
I have a dotnet dll which has got public function with four optional parameters (two 
byval and two byref). 
This dll function is called from a webmethod to return a value based on the passed 
parameters. The problem that we are facing here is, though we are assigning the value 
to the byref arguments the value is not reflected at the webmethod side. 
Webmethod : public function( ) as string 
{ 
x = generatexml(mapname) 
return x 
} 
private function generatexml(byval mapname as string) as string 
{ 
'x1 and x2 are byval arguments 
'x3 and x4 are byref arguments 
call ffReturnXmlString(x1,x2,x3,x4)  
return x3 
} 
The function ffReturnXmlString exists in another dotnet dll. This function generates 
the xml and assigns the xml string to the passed byref x3 argument, but once the 
statement is executed and the control switches to this function the value of x3 
becomes nothing. What should be done to retain the value? 
please let me know. 
Regds.,
Ranga

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to