document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. \' Gambas class file
  2.  
  3. Inherits IUsuarioChat
  4.  
  5. Private nombre As String
  6. Private salon As SalonDeChat
  7. Public colortexto As String
  8.  
  9. Public Sub _new(s As SalonDeChat)
  10.  
  11.   salon = s
  12.  
  13. End
  14.  
  15. Public Sub recibe(de As String, msg As String)
  16.  
  17.   Dim texto As String
  18.  
  19.   \'< font color = "red" > Este texto est รก en rojo</font>
  20.  
  21.   texto = "<font color=\\"" & colortexto & "\\">" & nombre & ": El usuario " & de & " te dice: " & msg & "</font><br> "
  22.  
  23.   salon.ZonaEscribe.text &= texto
  24.  
  25. End
  26.  
  27. Public Sub envia(a As String, msg As String)
  28.  
  29.   salon.envia(nombre, a, msg)
  30.  
  31. End
  32.  
  33. Public Function getnombre() As String
  34.  
  35.   Return nombre
  36.  
  37. End
  38.  
  39. Public Sub setnombre(value As String)
  40.  
  41.   nombre = value
  42.  
  43. End
');