WoW:API EditBox GetText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(added information about special characters, being escaped)
mNo edit summary
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}
<center>'''GetText''' ''-Documentation by DerGhulbus-''</center>


  str = editBox:GetText()
  str = editBox:GetText()

Revision as of 16:38, 4 December 2007

Widget API ← EditBox < GetText

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.