Hi.  Let me start by saying that I wouldn't be the biggest VB wizard
(and I can't check this because I'm waiting for IT to get me a license
for the Visual Studio .NET), but I don't remember that the first line of
a source file has to start with a keyword.

Basically, I couldn't figure out why my stupid hello world program
wouldn't work, but then I did one without comments and it worked.  If
you start the file with either a blank line or a comment, the compiler
gives the following error:

$ mbas hello.vb
syntax error, expecting EOF CLASS DELEGATE ENUM FRIEND IMPORTS INTERFACE
MODULE
NAMESPACE OPTION PRIVATE PROTECTED PUBLIC SHARED STRUCTURE OP_LT
Line:     2 Col: 0
VirtLine: 2 Token: 308   : Parsing error in hello.vb
hello.vb(2) error BC9999:
Mono.MonoBASIC.yyParser.yyException: irrecoverable syntax error
in <0x00701> 00 Mono.MonoBASIC.Parser:yyparse
(Mono.MonoBASIC.yyParser.yyInput)
in <0x00244> 00 Mono.MonoBASIC.Parser:parse ()

Compilation failed: 1 Error(s), 0 warnings

is this really how it is supposed to be?  Sorry for asking such a
bone-headed question, but something bone-headed like this wouldn't
surprise me since VB these days just seems like a series of bolt-ons on
top of bolt-ons.

Thanks in advance,

ast
-- 
Andrew S. Townley <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to