fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim n As Integer
  6. n = Console.ReadLine
  7. Do While n <> 42
  8. System.Console.WriteLine(n)
  9. n = Console.ReadLine
  10. Loop
  11. dim t as string = "patient"
  12. dim p as string = "101"
  13. system.console.writeline(TransStatus(t,p))
  14. End Sub
  15. End Class
  16.  
  17. Public Function TransStatus(ByVal Type as String, byVal Plan as String) As String
  18. Dim retVal as String = ""
  19. //if Type = "payment" then
  20. //if trim(Plan) <> ""
  21. //retVal = "from Ins. "+plan
  22. //else
  23. retval = "from Patient"
  24. Return retVal
  25. End Function
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
2
10
42
11
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/fJaxyq/prog.vb (17,16) : Error VBNC30203: Not valid as identifier.
/home/fJaxyq/prog.vb (18,5) : Error VBNC30203: Not valid as identifier.
/home/fJaxyq/prog.vb (23,10) : Error VBNC30203: Not valid as identifier.
/home/fJaxyq/prog.vb (24,8) : Error VBNC30203: Not valid as identifier.
/home/fJaxyq/prog.vb (25,13) : Error VBNC30203: Not valid as identifier.
There were 5 errors and 0 warnings.
Compilation took 00:00:00.6510340
stdout
Standard output is empty