Home > ASP Development > Variable Declaration

Variable Declaration



if a webpage is only used to display. i don't have 2 declare all the variables. i don;t have to 'dim' all of them rite? only those that i use for calculation and used to store temporarily. plz help... thanks

    
Guest


hi not clear what do u want....?

Was this answer helpful ? Yes No   
Guest


My recommendation is you should always add Option Explicit to your asp page. Doing so will force you to Dim all vbscript variables.

Was this answer helpful ? Yes No   
Guest


I'll agree with Doug. It is poor practice not to use option explicit, and the number of times a typo ended up fouling an entire project...

Was this answer helpful ? Yes No   
Guest


Yep. Always use option explicit and dim your vars.

It is best practice and makes scripts more efficient

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved