Panel.GetValue

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:GetValue( )
Description:
Returns the value the panel holds.
Returns: String
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.GetValue]Panel.GetValue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionReturns the string typed in a TextEntry.
Used onNewerClient.png
Code
local TextEntry = vgui.Create("TextEntry")
TextEntry:SetText("Hello world!")
print(TextEntry:GetValue())      
 
Output"Hello world!"


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox