combining two variables
Hi,
i have this code that revrites multiple textfields into one. i need to change variable i into a1, a2 or a3 depending ond the value of i.
//final text should look like this
//text10: loan1
//text20: loan2
//text30: loan3
CODE:
a1=("text10");
a2=("text20");
a3=("text30");
var text = "";
for (var i=1; i<=3; i++) {
var s = this.getField("loans"+i).valueAsString;
if (s!="") text+=""+ i + ": " + s + "\r";
}
event.value = text;
