fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5.  
  6. Dim aa As String = "smth_343"
  7.  
  8. Dim bb As String = aa.Split("_")(1)
  9. Dim cc As String = aa.Split("_")(2)
  10. Dim dd As String = aa.Split("_")(3)
  11.  
  12. MsgBox(bb)
  13.  
  14.  
  15. End Sub
  16. End Class
Runtime error #stdin #stdout #stderr 0.07s 36320KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.
  at Test.Main () [0x00000]