Re: OT - Quick ASP question

by "Kehvan M. Zydhek" <kehvan(at)zydhek.net>

 Date:  Fri, 15 Mar 2002 07:00:44 -0800
 To:  "Emerald Spirit" <emerald_spirit(at)yahoo.com>,
<hwg-techniques(at)hwg.org>
 References:  yahoo
  todo: View Thread, Original
Rebacca,

Are you declaring your variables? When you use OPTION EXPLICIT, you are
forcing that your variables be predefined before use. Not doing this with
throw an error.

OPTION EXPLICIT is not required, however, and is a basic form of debugging.
If the page works without it, then leave it out. My understanding of the
command is that it just helps you to keep track of your variables, so that
if you've introduced a typo, it'll be easier to find.

Me? I don't use it, so my information is based solely on what I could find
about it in my ASP book... Hopefully this helps?

Kehvan

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: NORTON ANTI-VIRUS 2002 scanned this email prior to sending. It is free
:: of any known embedded or attached viruses, trojans, or internet worms.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


----- Original Message -----
From: "Emerald Spirit" <emerald_spirit(at)yahoo.com>
To: <hwg-techniques(at)hwg.org>
Sent: Thursday, March 14, 2002 23:20
Subject: OT - Quick ASP question


> Hi gurus!
>
> OK. This has been driving me bananas for months now.
> I taught myself ASP by diving into other people's code
> and changing it/fixing it etc.
>
> I am now a fairly proficient ASP coder... but one very
> basic principal is really messing me up.  Option
> Explicit.  I want to use it.  I put in on my pages,
> and always get an error - even when Option Explicit is
> the only statement on the page.
>
> 'Microsoft VBScript compilation (0x800A0400)
> Expected statement'
>
> I've not found anything that addresses this problem.
> What the heck am I doing wrong???
>
> TIA
>
> Rebecca
>
>
> =====
> Do while Project<>Completed
>    if impossible = true then
>       rethink(approach)
>       set impossible = false
>    end if
> loop
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA