Widget API: EditBox:SetText

From AddOn Studio
Jump to navigation Jump to search

Widget API ← EditBox < SetText

SetText -Documentation by DerGhulbus-
editBox:SetText(String)

Sets the editBox's text to the specified string.

Parameters

Arguments

("String")
String
the string you want to appear in the EditBox

Returns

???


Details

You should call a SetText("") every time you read from an EditBox, so the command line is free for the next input.

MultiLineEditBox

When using a MultiLineEditBox, there is a sub-control called Edit the actually contains the text. For example, if the form name is "TestFourForm" and the MultilineEditBox control name is $parentMultiEditBox then you would use TestFourFormMultiEditBoxEdit to put text into the control.

TestFourFormMultiEditBoxEdit:SetText("This is a test.");

Also See

UI Escape Sequences