I use the
Variable AS
DataType because I prefer hungarian notation (prefixes before variable name) to show what type of variable I am using. It makes it easier for me to type the variable names and I don't have to remember what symbol goes with what data type.
Example:
Local iVariable as integer
Local fVariable as float
Local tVariable as string
(I use 't' because I use 's' for single in VB
)
Etc.
I also like to know what variables I am using in a certain part code. It helps me keep the number of variables I am using down. I also like to create reusable variables for counters and temp. variables and such. I am always creating an 'i1 as integer' variable that I reuse for counters and momentary flags. If I know what variables I have already created I can reuse them.