Module Module1

    Sub Main()
        System.Console.Writeline{"this is my program"}
        System.Console.ReadLine{}
    End Sub

End Module

this is my code
am getting an error saying that

Error 1 Expression expected.
Error 2 Method arguments must be enclosed in parentheses.
Error 3 Expression expected.
Error 4 Method arguments must be enclosed in parentheses.

Recommended Answers

Function calls use parentheses, not braces:

System.Console.Writeline("this is my program")
System.Console.ReadLine()
Jump to Post

All 2 Replies

Function calls use parentheses, not braces:

System.Console.Writeline("this is my program")
System.Console.ReadLine()

thanq very much

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.