cannot access My.Application.CommandLineArgs

  • Thread starter Thread starter FromJava
  • Start date Start date
F

FromJava

Guest
Hi all,

As this is my very first VB program (actually after the "hello world" one):


Imports System
Imports Microsoft.VisualBasic.ApplicationServices
Module Hello
Sub Main()
For Each argument As String In My.Application.CommandLineArgs
Console.WriteLine(argument)
Next
End Sub
End Module


I get the following compiler message:

args.vb(6) : error BC30456: 'CommandLineArgs' is not a member of 'My.MyApplication'.

For Each argument As String In My.Application.CommandLineArgs


I am compiling from the command-line. Any idea why I am getting this error?

Thank you

Continue reading...
 
Back
Top