Widget API: EditBox:GetText

From AddOn Studio
Revision as of 16:47, 14 May 2007 by WoWWiki>Luke1410 (added information about special characters, being escaped)
Jump to navigation Jump to search

Widget API ← EditBox < GetText

GetText -Documentation by DerGhulbus-
str = editBox:GetText()

Returns the String that is currently entered in the EditBox.


Arguments

???


Returns
str
str
String - the current String in the EditBox

Details

Note that the special characters "|" and "\" are escaped in the returned string. That way GetText() returns "||" instead of "|" and "\\" instead of "\".


Comments

If you want to read in numbers you should use the GetNumber() function instead.