Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a Function Within a Function

Status
Not open for further replies.

tomhughes

Vendor
Aug 8, 2001
233
0
0
US
I am trying to call a Function from within another Function, but it doesn't work. The button named "Init" is supposed to call the "Output_Key()" but the values in the OUT Text boxes are not displayed in the Variable boxes
var1-4.

File available at:
 
1. Delete all "Var:"s from input TextFields.
2. Name input TextFields as "var1", "var2", "var3", and "var4".
Code:
Init.onRelease = function() {
   Output_Key();
};

function Output_Key() {
   for (m=1; m<=4; m++) {
      this["OUT"+m].text = this["var"+m].text;
   }
}

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top