TextField to String
in
Contributed Library Questions
•
4 months ago
Hello!!
I'm doing a program that will ask you a question, you will select an answer using radio button. Then in the end it will make a report and send you by e-mail. I got all the parts right, it send to an fixed E-mail just fine... But i need some way that it will read what is in the textField.
One other problem that i'm having is how to make the textField disapear when the question is changed, or the program resets...
The program is with 1409 lines, If you want i can post it here...
I have already tried:
if( a2==20){ // this is selected when the person chooses to send the email.
lermail.addTextfield(" ")
.setPosition(505,600)
.setSize(200,40)
.setFont(createFont("Verdana",20))
.setAutoClear(false)
.setVisible(true)
;
String email = lermail.getText();
}
}
lermail.setVisible(false); // this happens when the send email part is over.
But the program says that there is no function named .getText(); neither the Textfield.setVisible(blolean);
Do you have any idea what i can do to make it work??
Thanks for your time
Obs.: If you want me to post the hole program here is all good =D
1