ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

 Top ASP 101 Stories Top ASP 101 Stories
Connections, Commands, And Procedures
What is ASP?
VBScript Classes: Part 1 of N

Configure IIS to Perform Reverse DNS Lookups
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates

Quick Tips

Variable Name Prefixes
Good ASP code is easy to read and understand. A quick way to make your code self-documenting is to name your variables in a meaningful way. The IIS Resource Kit team has put together a list of variable name prefixes to be used with assorted data types. Using them will not only make your code easy to read, but it will also have a professional feel.

The prefixes are as follows:

bln: Boolean
byt: Byte
col :Collection object
cur: Currency
dtm: Date-time
dbl: Double
err: error
int: Integer
lng: Long
obj: Object
sng: Single
str: String
udt: User-defined type
vnt: Variant
cmm: ADO command
cnn: ADO connection
fld: ADO field
prm: ADO parameter
rst: ADO recordset

Simply add the prefixes to the front of your variables. For example, the variable Today becomes dtmToday. This simple habit can save you time and energy.
Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to:

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers