Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 2nd, 2005, 12:13 PM
Authorized User
 
Join Date: Mar 2005
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default CH. 4 Creating Local Variables

In the exercise to demo the creating local variables. I was wondering why the Option Explicit command was not used. Since it appears that this is a way to ensure that your variables are defined properly.

I did the exercise with the Option Explicit command and the only difference was that I had to declare the variable in each Sub procedure. I believe this is a better way of programming since it indicates that the variable is local.

  #2 (permalink)  
Old March 3rd, 2005, 02:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I believe so, just some people decide not to use it, maybe in a late-binding scenario, or as a personal preference.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenating local variables into an execute... BorisG SQL Language 0 September 4th, 2007 09:33 AM
Ch. 2 - Passing Variables with Sessions tks001 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 February 20th, 2006 06:26 PM
Creating a local cube with relational data source loydon Oracle 1 August 31st, 2004 12:16 PM
Creating a local cube with relational data source loydon Access 0 August 31st, 2004 07:27 AM



All times are GMT -4. The time now is 04:08 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.