Thread: GuiTextEdit
View Single Post
  #2  
Old 11-09-2006, 10:17 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Andy0687 View Post
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..
Reply With Quote