Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Diming variables

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
I have noticed in a few peoples post that they dim there variables using multiple lines. Such as this:

Dim Str_mystring1
Dim Str_mystring2

Well you can make it easier on yourself, and make your page shorter by diming on the same line like this:

Dim Str_mystring1, Str_mystring2, Str_...

and so on..


-Jason
 
Good tip Jason.
however you don't want to get too exstensive in the list behind one Declaration mainly just for the shear ease of reading and debugging.
[thumbsup2] [bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
It can also be useful to group your variables together for ease of reading and debugging:

'database variables
dim conn, rs, etc...

'page variables
dim strFromText1, strFromList1, etc...

'other variables
dim intLoopCounter, etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top