-
Use meaningful names for your variables
-
Always declare variables in a Dim statement
-
Use indentation of logical blocks of code to make start and end of loops etc clearer
-
Use empty lines between blocks of code that are logically different eg between blocks of code doing one task and the next block doing something different
-
Use comments in your code explaining what each part is doing
-
At the beginning of your code write comments with the names of all programmers and the date of creation and any major updates
-
Variables
-
Multiple Forms - creating backgrounds for your projects
-
Activities
Good Code
Before you finish this unit, it is important for you to understand that when writing code it should be readable and easily understandable by other people and by yourself after a long period of time. Following are some guidelines for writing good code:
VB Index
|
|
|

