Quote:
Originally Posted by Andy0687
This might be a simple question but i cant figure it out.
When im doing an onAction from a button, how can I get the value that a player has entered in the TextEdit section?
|
If you make names like
TextEdit#-WINDOWID
Button#-WINDOWID
# being TextEdit0 | TextEdit1 etc
then you can cut the catchevent down ex:
PHP Code:
function onActionButton(temp.bname)
{
temp.windowid = temp.bname.substring(temp.bname.pos("-") + 1);
temp.text = makevar("TextEdit0-" @ temp.windowid).text;
}
I guess..