Garry's Mod Wiki

DTextEntry:SetNumeric

DTextEntry:SetNumeric( boolean numericOnly )

Description

Sets whether or not to decline non-numeric characters as input.

Numeric characters are 1234567890.-

Arguments

1 boolean numericOnly
Whether to accept only numeric characters.

Example

local TextEntry = vgui.Create( "DTextEntry" ) TextEntry:SetNumeric(true)
Output: Only allow numeric characters.

Page Links


Special Pages


Wikis

?

Render Time: 68ms

DB GetPage 44
Generate Html 0
SaveChanges (1) 10
Render Body 0
Render Sidebar 12