Panel/GetValue

From Garry's Mod
Jump to: navigation, search
 Panel:GetValue( )

Contents

Description

Returns the value the panel holds.

In engine is only implemented for CheckButton, Label and TextEntry as a string and for those elements has a hard coded limit of 8092 characters.

Returns

any

The value the panel holds.

Examples

Example

Returns the string typed in a TextEntry.

local TextEntry = vgui.Create( "TextEntry" )
TextEntry:SetText( "Hello world!" )
print( TextEntry:GetValue() )

Output:

"Hello world!"
Personal tools
Navigation