Panel.GetValue
From GMod Wiki
Function | |
Syntax | Panel:GetValue( ) |
Description: | |
Returns the value the panel holds. | |
Returns: | String |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.GetValue]Panel.GetValue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Returns the string typed in a TextEntry. |
---|---|
Used on | |
Code | local TextEntry = vgui.Create("TextEntry") TextEntry:SetText("Hello world!") print(TextEntry:GetValue()) |
Output | "Hello world!" |
Additional Notes
- This function probably returns values from other panels than TextEntry as well.
- This function will truncate data to 255 bytes.