fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5.  
  6.  
  7. Dim texto As String
  8.  
  9.  
  10. Dim x As Integer
  11. Dim y As Integer
  12.  
  13.  
  14. Dim caracter As Char
  15.  
  16.  
  17. Dim CaracterRepetido As Integer
  18.  
  19.  
  20. texto = Me.txtCalcular.Text
  21.  
  22.  
  23. If Me.txtCalcular.Text.Length = 0 Then
  24. MessageBox.Show("Ingrese la cadena de caracteres", "Calcular", MessageBoxButtons.OK, MessageBoxIcon.Warning)
  25. Else
  26. CaracterRepetido = 0
  27. For x = 0 To texto.Length - 1
  28. caracter = texto.Chars(x)
  29. For y = 0 To texto.Length - 1
  30. If y <> x Then
  31. If caracter = texto.Chars(y) Then
  32. CaracterRepetido = CaracterRepetido + 1
  33. End If
  34. End If
  35. Next
  36. Next
  37.  
  38. If CaracterRepetido <> 0 Then
  39. MessageBox.Show("Se encontraron caracteres repetidos", "Control de caracteres", MessageBoxButtons.OK, MessageBoxIcon.Information)
  40. Else
  41. MessageBox.Show("No se encontraron caracteres repetidos", "Control de caracteres", MessageBoxButtons.OK, MessageBoxIcon.Information)
  42. End If
  43. End If
  44. CaracterRepetido = 0
  45.  
  46. End Class
  47.  
  48.  
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/OGgx5j/prog.vb (46,10) : Error VBNC90019: Expected 'Sub'.
Error recovery not implemented yet.
/home/OGgx5j/prog.vb (46,10) : Error VBNC30205: Expected end of statement.
Error recovery not implemented yet.
Error recovery not implemented yet.
/home/OGgx5j/prog.vb (48,2) : Error VBNC90019: Expected 'End'.
Error recovery not implemented yet.
/home/OGgx5j/prog.vb (48,2) : Error VBNC99999: vbnc crashed nearby this location in the source code.
/home/OGgx5j/prog.vb (48,2) : Error VBNC99999: Unexpected error: Object reference not set to an instance of an object
  at vbnc.TypeDeclaration.Init (vbnc.Attributes CustomAttributes, Modifiers Modifiers, vbnc.MemberDeclarations Members, vbnc.Identifier Name, Int32 TypeArgumentCount) [0x00000] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/TypeDeclarations/TypeDeclaration.vb:109 
  at vbnc.GenericTypeDeclaration.Init (vbnc.Attributes CustomAttributes, Modifiers Modifiers, vbnc.MemberDeclarations Members, vbnc.Identifier Name, vbnc.TypeParameters TypeParameters) [0x0001f] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/TypeDeclarations/GenericTypeDeclaration.vb:36 
  at vbnc.PartialTypeDeclaration.Init (vbnc.Attributes CustomAttributes, Modifiers Modifiers, vbnc.MemberDeclarations Members, vbnc.Identifier Name, vbnc.TypeParameters TypeParameters, vbnc.TypeImplementsClauses Implements) [0x00000] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/TypeDeclarations/PartialTypeDeclaration.vb:43 
  at vbnc.ClassDeclaration.Init (vbnc.Attributes CustomAttributes, Modifiers Modifiers, vbnc.TypeDeclaration DeclaringType, vbnc.MemberDeclarations Members, vbnc.Identifier Name, vbnc.TypeParameters TypeParameters, vbnc.NonArrayTypeName Inherits, vbnc.TypeImplementsClauses TypeImplementsClauses) [0x00000] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/TypeDeclarations/ClassDeclaration.vb:47 
  at vbnc.Parser.ParseClassDeclaration (vbnc.ParsedObject Parent, vbnc.Attributes Attributes, System.String Namespace) [0x001aa] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/Parser/Parser(Types).vb:91 
  at vbnc.Parser.ParseTypeDeclaration (vbnc.ParsedObject Parent, vbnc.Attributes Attributes, System.String Namespace) [0x00010] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/Parser/Parser.vb:1436 
  at vbnc.Parser.ParseTypeMembers (vbnc.TypeDeclaration Parent, vbnc.MemberDeclarations Members) [0x0005d] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/Parser/Parser.vb:1349 
  at vbnc.Parser.ParseTypeMembers (vbnc.TypeDeclaration Parent) [0x0000c] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/Parser/Parser.vb:1322 
  at vbnc.Parser.ParseClassDeclaration (vbnc.ParsedObject Parent, vbnc.Attributes Attributes, System.String Namespace) [0x00147] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/Parser/Parser(Types).vb:84 
  at vbnc.Parser.ParseTypeDeclaration (vbnc.ParsedObject Parent, vbnc.Attributes Attributes, System.String Namespace) [0x00010] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/Parser/Parser.vb:1436 
  at vbnc.Parser.ParseAssemblyMembers (vbnc.AssemblyDeclaration Parent, System.String RootNamespace, vbnc.MemberDeclarations declarations) [0x001a8] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/Parser/Parser.vb:1482 
  at vbnc.Parser.ParseAssemblyDeclaration (System.String RootNamespace, vbnc.AssemblyDeclaration assembly) [0x00092] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/Parser/Parser.vb:433 
  at vbnc.Parser.Parse (System.String RootNamespace, vbnc.AssemblyDeclaration assembly) [0x00002] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/Parser/Parser.vb:58 
  at vbnc.Compiler.Compile_Parse () [0x0006d] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Compiler.vb:363 
Compilation took 00:00:00.6363930
stdout
Standard output is empty