Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is the vb6 number part of the code?


Asked by Gideon Woodard on Dec 14, 2021 FAQ



The old fashioned, legacy VB6 numbers are part of your code. The numbers displayed by the Editor Options are just IDE numbers for the developer to keep track of where certain lines of code are and for reference purposes during code reviews and internal documentation. They are only used by the IDE and are not part of your code or your program.
Indeed,
The VB6 programming language is not part of .Net. VB.Net is a completely different language. It is unfortunate that Microsoft chooses to use the name "Visual Basic" (or VB) for a language that is incompatible with Visual Basic 6.0.
Just so, The names Command1 and Button1 are not obligatory. However, these are default names for a command button in Visual Basic 6 and VB.NET respectively. In VB.NET, the Handles keyword is used to make the sub Button1_Click a handler for the Click event of the object Button1.
And,
This section concentrates on the programming fundamentals of Visual Basic with the blocks specified. Code in Visual Basic is stored in the form of modules. The three kind of modules are Form Modules, Standard Modules and Class Modules. A simple application may contain a single Form, and the code resides in that Form module itself.
Also,
Also, two important data-type changes occurred with the move to VB.NET: compared to Visual Basic 6, the Integer data type has been doubled in length from 16 bits to 32 bits, and the Long data type has been doubled in length from 32 bits to 64 bits. This is true for all versions of VB.NET.