fork download
  1. Public Class frmChapa
  2. Private Sub btCalcular_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btCalcular.Click
  3.  
  4. Dim texto As String
  5.  
  6.  
  7. Dim x As Integer
  8. Dim y As Integer
  9.  
  10.  
  11. Dim caracter As Char
  12.  
  13.  
  14. Dim CaracterRepetido As Integer
  15.  
  16.  
  17. texto = Me.txtCalcular.Text
  18.  
  19.  
  20. If Me.txtCalcular.Text.Length = 0 Then
  21. MessageBox.Show("Ingrese la cadena de caracteres", "Calcular", MessageBoxButtons.OK, MessageBoxIcon.Warning)
  22. Else
  23. CaracterRepetido = 0
  24. For x = 0 To texto.Length - 1
  25. caracter = texto.Chars(x)
  26. For y = 0 To texto.Length - 1
  27. If y <> x Then
  28. If caracter = texto.Chars(y) Then
  29. CaracterRepetido = CaracterRepetido + 1
  30. End If
  31. End If
  32. Next
  33. Next
  34.  
  35. If CaracterRepetido <> 0 Then
  36. MessageBox.Show("Se encontraron caracteres repetidos", "Control de caracteres", MessageBoxButtons.OK, MessageBoxIcon.Information)
  37. Else
  38. MessageBox.Show("No se encontraron caracteres repetidos", "Control de caracteres", MessageBoxButtons.OK, MessageBoxIcon.Information)
  39. End If
  40. End If
  41. CaracterRepetido = 0
  42. End Sub
  43. End Class
  44.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/j8mDBo/prog.vb (2,113) : Error VBNC30451: Could not resolve the name 'btCalcular'
/home/j8mDBo/prog.vb (17,20) : Error VBNC30456: 'txtCalcular' is not a member of 'frmChapa'.
/home/j8mDBo/prog.vb (20,15) : Error VBNC30456: 'txtCalcular' is not a member of 'frmChapa'.
/home/j8mDBo/prog.vb (21,24) : Error VBNC30451: Could not resolve the name 'MessageBox'
/home/j8mDBo/prog.vb (36,28) : Error VBNC30451: Could not resolve the name 'MessageBox'
/home/j8mDBo/prog.vb (38,28) : Error VBNC30451: Could not resolve the name 'MessageBox'
There were 6 errors and 0 warnings.
Compilation took 00:00:00.9594940
stdout
Standard output is empty