[Javascript] Functions arguments...

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Thu May 3 07:38:43 CDT 2001


Carlos, 
1. Urgency of need at your end, does not necessitate urgency on the part of
list members.
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.
3. To see the modified value of X, you have to return X to the caller; e.g. 
<SCRIPT>
var Y;
var R;
Y = 3
R = Modify(Y);
alert(r + " is the result of sending Y to the Modify() Function");

function Modify(X) {
  X = X + 5;
  return X;
}
</SCRIPT>




Bob Filipiak (Contractor)
MCP 

-----Original Message-----
From: Carlos [mailto:carlos at unica.cu]
Sent: Thursday, May 03, 2001 9:28 AM
To: Javascript List
Subject: [Javascript] Functions arguments...


Well, it seems that nobody can help me with the conversion of variant into a
string...if anyone can, please email the answer, I'm in a hurry...

Meanwhile I want to ask another question...
How can I pass an argument to a function, modify it inside the function, and
then that this modification reflects outside the function, if no one can
understand, I put an example...

function Modify(X) {
  X = 5; //This value of X won't go outside the function
}

So, if I call the function Modify(X), then X will remain undefined, in
others words, if any have programmed in pascal can associate this to the
"var" keyword in a function or procedure, which allows the function modify
the value of a variable...

And again, my question...How can I convert a variant type to a string or a
byte or an integer???...

Thanks


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010503/821eceef/attachment.htm>


More information about the Javascript mailing list