![]() A procedure can be a Function, Sub, Get, Set, AddHandler, Operator, RemoveHandler, or RaiseEvent. This means that the procedure will define the class behavior. It is inside procedures where you should define your executable code. A VB.Net module or class can have more than one procedures.Anyone reading through your code will find it easy to understand. Use them to explain the meaning of various statements in your code. The purpose of comments is to improve the readability of the code. The VB.Net compiler will not process this part. To mark it as a comment, we added a single quote (‘) to the beginning of the sentence. It is inside this module that you will be able to define the data and methods to be used by your program. Hence we must have a class module in every program. ![]() Here, we have declared a module named Module1. ![]() After that, we will be able to access all the methods that have been defined in that namespace without getting an error. What we are doing is that we are including a namespace with the name System into our programming structure. ![]() This is called the namespace declaration.Let us discuss the various parts of the above program: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |