Connecting Tech Pros Worldwide Forums | Help | Site Map

Simplest program ever - and does not work!

Angel Salamanca
Guest
 
Posts: n/a
#1: Nov 20 '05
Hello all,

Just downloaded the .NET SDK and, to test it works, I
write this "Hello world" code:

Option explicit

Imports System

' A "Hello World!" program in Visual Basic.

Module Hello
Sub Main()
Microsoft.VisualBasic.Interaction.MsgBox("Hello, world!")
End Sub
End Module

It compiles fine and works. Now I replace the MsgBox
sentence with just

MsgBox("La vamos a liar")

and the compiler does not like it. It tells me 'Name
MsgBox is not declared'. So is not the import statement
working?

Given this symptom, what could be the problem?

Regards


Closed Thread