When we are thinking to create a variable, function, module, class name or any other objects assigners can't be used a Keyword in VB.NET programming language. Because Keyword is a reserved word with special meanings in the compiler, whose meaning cannot be changed.
What an actual Keyword is?
A Keyword is a predefined word for function, class name or any other objects which are in the compiler to identify and run the programming in VB.NET. So, because of this, a programmer can't be created a variable or anything else using Keywords to use in the program as I mentioned the above.
In This Tutorial:
Keywords in VB.NET
Keywords are many in VB.NET programming language and all of them are in the table below.
When creating a variable or function in a program, you can't use anyone of those Keywords above in the table: Dim Stop as integer
Can create like this: Dim Stopp as Integer
So, it's easy to understand the difference between those are two above examples.
Explanations about Identifiers in VB.NET
The identifier is used to identify the name of function, class, variable or any other user-defined elements in the program. Probably an identifier can be the combination of letter, digit, and underscore. Even though, the first character of the identifier or variable name must start with alphabet letter or underscore (_) of any length.
When declare a variable should be followed its rules in VB.NET. There are various rules in VB.NET, as follows:
Meaningful Variable Declaration:
Can't declare a variable like below:
Dim String as String : This is an invalid variable
Dim Else as Integer : This is an invalid variable
Dim 43webs as String : This is an invalid variable
If you have any other questions regarding this tutorial, please state all your query through "Comments" section below.
Leave a Reply.