fork download
  1. Option Strict On
  2. Imports System
  3.  
  4. Module Module1
  5. Sub Main()
  6. Dim valueOne As Integer = 10
  7. Dim valueTwo As Integer = 20
  8. Dim valueThree As Integer = 30
  9.  
  10. Console.WriteLine ("Testing valueOne against valueTwo...")
  11. If valueOne > valueTwo Then
  12. Console.WriteLine("ValueOne: {0} larger than ValueTwo: {1}", valueOne, valueTwo)
  13. Console.WriteLine ("Testing ValueThree against ValueTwo...")
  14. If valueThree > valueTwo THEN
  15. Console.WriteLine("ValueThree: {0} larger than ValueTwo: {1}.", valueThree, valueTwo)
  16. End If
  17. Console.WriteLine("Testing is valueTwo > 15.")
  18. If valueTwo > 15 Then Console.WriteLine("Yes it is")
  19.  
  20. End Sub
  21. End Module
Compilation error #stdin compilation error #stdout 0.03s 24168KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5943 (Mono 3.8 - tarball)
Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved.

/home/UE9nLA/prog.vb (20,9) : error VBNC90019: Expected 'If'.
/home/UE9nLA/prog.vb (20,9) : error VBNC90019: Expected 'End'.
There were 2 errors and 0 warnings.
Compilation took 00:00:00.6019730
stdout
Standard output is empty