VB Variable Naming conventions...
OK, as part of quality control for BAE audits we have to write silly documents about the correct naming conventions...
So, I know the naming conventions of Data-Types and controls, however I do not know the industry standards for ado objects...
I always use adoRec for a recordset and adoConn for a connection object...
Don't suppose anyone could shed some light onto this.
Woka
Re: VB Variable Naming conventions...
Quote:
Originally posted by Wokawidget
OK, as part of quality control for BAE audits we have to write silly documents about the correct naming conventions...
So, I know the naming conventions of Data-Types and controls, however I do not know the industry standards for ado objects...
I always use adoRec for a recordset and adoConn for a connection object...
Don't suppose anyone could shed some light onto this.
Woka
here we use the "rst" prefix for recordsets .... rstResults, rstPricing, etc
and con for connections.... conDB, conDatabase, etc....
then cmd for command objects, cmdSelect, cmdUpdate..... and prm for the parameter object.....
hope that helps...
[edit] IMHO: There's no need to specify ADO.... unless you are using more than one method for connecting to the database (ADO and ODBC) - which seems rediculous, yet understandably possible -- then ADO would seem to be implied.....