StringValue
A container object for a single string.
| Memory category | Instances |
|---|
Member index 3
Description
Stores a single Luau string. The
length of the string can't be more than 200,000 characters; anything longer
causes a String too long error.
If the string is too long to be displayed in the Value field within the Properties window, it shows partial string contents and an ellipsis (...).
Like all ValueBase objects, this single value is stored in the
Value property. The Changed event fires with the
new value being stored in the object, instead of a string representing the
property being changed.
History 10
- 553 Change PreferredDescriptor of changed from to Changed
- 486 Change ThreadSafety of Value from ReadOnly to ReadSafe
- 462 Change ThreadSafety of changed from to Unsafe
- 462 Change ThreadSafety of Changed from to Unsafe
- 462 Change ThreadSafety of Value from to ReadOnly
- 335 Change Superclass of StringValue from Instance to ValueBase
- 50 Add changed
- 47 Add Changed
- 47 Add Value
- 47 Add StringValue
Members 3
Changed
| Parameters (1) | |
|---|---|
| value | string |
Fires whenever the IntValue.Value changes. It runs with the new value being stored in the argument object, instead of a string representing the property being changed.
Listening for the Changed signal can be useful in games that use
StringValues to track values like NPC names or item descriptions.
| Thread safety | Unsafe |
|---|
Value
| Type | Default | |
|---|---|---|
| string | ||
The stored string.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |
changed
| Parameters (1) | |
|---|---|
| value | string |
| Thread safety | Unsafe |
|---|