PDA

View Full Version : need help with text input field


lrojas
08-07-2001, 12:22 AM
I have three text fields the firs two are input fields and the third one is dynamic text, I need to put values on the first two and have the sum display in the third one.
What do I have to do

Jesse
08-07-2001, 03:30 AM
assuming they are called: in1, in2 and out, on a button have this code:
on (release) {
out = in1 + in2;
}
doesn't get much easier...

lrojas
08-07-2001, 03:41 AM
thank you and I suppose if I want it to add numbers I just have to add the function Number() right?

Jesse
08-07-2001, 04:08 AM
yeah since they are input boxes (which automatically assume strings) you would put Number(in1) and Number(in2) but it's not necessary around 'out'.