<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Javascript] Functions arguments...</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Carlos, </FONT>
<BR><FONT SIZE=2>1. Urgency of need at your end, does not necessitate urgency on the part of list members.</FONT>
<BR><FONT SIZE=2>2. I'm sure there are many folks on this list who can help you if you define your problem clearly and don't mix languages and provide a precise explanation of what is the binary file you are trying to print and why, etc.</FONT></P>

<P><FONT SIZE=2>3. To see the modified value of X, you have to return X to the caller; e.g. </FONT>
<BR><FONT SIZE=2>&lt;SCRIPT&gt;</FONT>
<BR><FONT SIZE=2>var Y;</FONT>
<BR><FONT SIZE=2>var R;</FONT>
<BR><FONT SIZE=2>Y = 3</FONT>
<BR><FONT SIZE=2>R = Modify(Y);</FONT>
<BR><FONT SIZE=2>alert(r + &quot; is the result of sending Y to the Modify() Function&quot;);</FONT>
</P>

<P><FONT SIZE=2>function Modify(X) {</FONT>
<BR><FONT SIZE=2>&nbsp; X = X + 5;</FONT>
<BR><FONT SIZE=2>&nbsp; return X;</FONT>
<BR><FONT SIZE=2>}</FONT>
<BR><FONT SIZE=2>&lt;/SCRIPT&gt;</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>Bob Filipiak (Contractor)</FONT>
<BR><FONT SIZE=2>MCP </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Carlos [<A HREF="mailto:carlos@unica.cu">mailto:carlos@unica.cu</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, May 03, 2001 9:28 AM</FONT>
<BR><FONT SIZE=2>To: Javascript List</FONT>
<BR><FONT SIZE=2>Subject: [Javascript] Functions arguments...</FONT>
</P>
<BR>

<P><FONT SIZE=2>Well, it seems that nobody can help me with the conversion of variant into a</FONT>
<BR><FONT SIZE=2>string...if anyone can, please email the answer, I'm in a hurry...</FONT>
</P>

<P><FONT SIZE=2>Meanwhile I want to ask another question...</FONT>
<BR><FONT SIZE=2>How can I pass an argument to a function, modify it inside the function, and</FONT>
<BR><FONT SIZE=2>then that this modification reflects outside the function, if no one can</FONT>
<BR><FONT SIZE=2>understand, I put an example...</FONT>
</P>

<P><FONT SIZE=2>function Modify(X) {</FONT>
<BR><FONT SIZE=2>&nbsp; X = 5; //This value of X won't go outside the function</FONT>
<BR><FONT SIZE=2>}</FONT>
</P>

<P><FONT SIZE=2>So, if I call the function Modify(X), then X will remain undefined, in</FONT>
<BR><FONT SIZE=2>others words, if any have programmed in pascal can associate this to the</FONT>
<BR><FONT SIZE=2>&quot;var&quot; keyword in a function or procedure, which allows the function modify</FONT>
<BR><FONT SIZE=2>the value of a variable...</FONT>
</P>

<P><FONT SIZE=2>And again, my question...How can I convert a variant type to a string or a</FONT>
<BR><FONT SIZE=2>byte or an integer???...</FONT>
</P>

<P><FONT SIZE=2>Thanks</FONT>
</P>
<BR>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Javascript mailing list</FONT>
<BR><FONT SIZE=2>Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2><A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>

</BODY>
</HTML>