fork download
  1. In Visual Basic, what is the output from these statements?
  2. on error goto h
  3. if (0 / 1) then
  4. msgbox("3")
  5. else
  6. msgbox("1")
  7. end if
  8. h:
  9. if (typeof err.getexception() is DivideByZeroException) then
  10. msgbox("2")
  11. end if
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/GwoxqV/prog.vb (1,4) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (1,59) : Error VBNC30037: Symbol is not valid.
/home/GwoxqV/prog.vb (2,3) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (3,3) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (4,7) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (5,5) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (6,7) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (7,7) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (8,2) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (9,3) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (10,7) : Error VBNC30203: Not valid as identifier.
/home/GwoxqV/prog.vb (11,7) : Error VBNC30203: Not valid as identifier.
There were 12 errors and 0 warnings.
Compilation took 00:00:00.6388390
stdout
Standard output is empty