Are you sure that variables.shipping is _ALWAYS_ defined? Are you sure there
is no case where it is not?

If you add

<cftry>

<!--- your code --->


<cfcatch>
        #cfcatch.message#
<cfcatch>

</cftry>

what happens?

WG

-----Original Message-----
From: Bud [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 14:00
To: CF-Talk
Subject: Phantom errors - case in point


+++
The system has attempted to use an undefined value, which usually
indicates a programming error, either in your code or some system
code.

Null Pointers are another name for undefined values.
+++

OK. This code returns the error above:

<CFIF isDefined('form.includeshipping')>
<textarea rows="10" cols="50" wrap="off">
<CFOUTPUT>#variables.shipping#</CFOUTPUT>
</textarea>
</CFIF>

This does not:

<textarea rows="10" cols="50" wrap="off">
<CFOUTPUT>#variables.shipping#</CFOUTPUT>
</textarea>

And this does not:

<CFIF isDefined('form.includeshipping')>
<textarea rows="10" cols="50" wrap="off">
Static Text
</textarea>
</CFIF>

It's only if I place the "shipping" variable inside of the cfif
isDefined('form.includeshipping') statement. The error occurs whether
or not form.includeshipping is defined. variables.shipping is always
defined.

Again, am I missing something obvious? Is anyone else experiencing this?
--

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to