EditBox.Value
The EditBox Control Object that is returned by the AddEditBox function has a Value property. The Value property represents the value that is shown in the Edit Box.
Syntax |
ControlObject.Value = Value Where ControlObject is the name of the variable (declared in your script) that is used to store the EditBox Control Object that is returned by the AddEditBox function. |
Description |
Sets the value or string that is shown in the Edit Box. |
Arguments |
Value {string or integer} A string value defines the text that is shown in the Edit Box. An integer value defines the number that is shown in the Edit Box. You need to define a string or a number. If the SetRange function is used in the script, the EditBox.Value should be a value within the defined range. |
Returns |
String or Integer depending on the type of argument defined. |
Example: 1
EditBox1.Value = 10
Where:
- EditBox1 is the name of the variable that stores the EditBox Control Object returned by the AddEditBox function
- 10 is the integer value for the Edit Box.
Example: 2
EditBox1.Value = "Test Value"
Where:
- EditBox1 is the name of the variable that stores the EditBox Control Object returned by the AddEditBox function
- Test Value is the string value for the Edit Box.