• Hashtag / # is invisible in DTextEntry
    3 replies, posted
Hi, i found a strange "bug" when i make a DTextEntry and put only a "#" in it, its not visible DTextEntry/SetValue or Panel/SetText local frame = vgui.Create( "DFrame" ) frame:SetSize( 400, 200 ) frame:Center() frame:MakePopup() local TextEntry = vgui.Create( "DTextEntry", frame ) TextEntry:SetPos( 25, 50 ) TextEntry:SetSize( 75, 85 ) TextEntry:SetText( "#" ) TextEntry.OnEnter = function( self ) chat.AddText( self:GetValue() ) end any ideas / solution for that?
Try \#
results: invalid escape sequence near '"'
DTextEntry is automatically converts "# language phrases" to string they were set. See here: DTextEntry
Sorry, you need to Log In to post a reply to this thread.