Wrox Programmer Forums
|
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 20th, 2003, 10:56 PM
Registered User
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Invalid use of Null

Did this question ever get a resolution.

I checked the web and removed all the chr 13 and nulls from my data, and I still get the same error as this guy did 3 years ago.

http://p2p.wrox.com/archive/asp_ecom...2000-09/29.asp

__________________________________________________ ________

Folks,



I have reached page 187 of the book with the code to create the detail.asp

page. When testing the page I get the error



EstoreCommerce error '800a005e'



Invalid use of Null



/NoNameWebStore_Local/en/detail.asp, line 44





Line 44 of the page corresponds to:



mfrname = Product.MfrName





I have double checked the code in both detail.asp and the Product class

module of the WroxCommerce component but couldn't find any spelling

mistake.



I am quite a beginner with ASP and I don't exactly know what causes this

error. Does anyone have a suggestion on what may be the cause and how I

can resolve this problem? Thank you.



* Marco

Message #2 by "Ben Lew" <formula1@b...> on Tue, 19 Sep 2000 00:07:18 -0400



Null is a somewhat tricky subject b/c it is technically not "0" nor is it

"nothing" but rather it is "unknown" (for example, if you have two database

fields that are "null" and you compare one to the other, such as "if

field1=field2 then..." and both were null, this would result in "false"

because null is not equal to null since both are unknown values. Chances

are somewhere in your code you are referencing a null value incorrectly.



Ben



-----Original Message-----

From: Marco Garibaldi [mailto:[email protected]]

Sent: Monday, September 18, 2000 12:07 PM

To: ASP ECommerce

Subject: [asp_ecommerce] Error: Invalid use of Null





Folks,



I have reached page 187 of the book with the code to create the detail.asp

page. When testing the page I get the error



EstoreCommerce error '800a005e'



Invalid use of Null



/NoNameWebStore_Local/en/detail.asp, line 44





Line 44 of the page corresponds to:



mfrname = Product.MfrName





I have double checked the code in both detail.asp and the Product class

module of the WroxCommerce component but couldn't find any spelling

mistake.



I am quite a beginner with ASP and I don't exactly know what causes this

error. Does anyone have a suggestion on what may be the cause and how I

can resolve this problem? Thank you.



* Marco



---

You are currently subscribed to asp_ecommerce as: [email protected]

To unsubscribe send a blank email to $subst('Email.Unsub')




  #2 (permalink)  
Old November 21st, 2003, 04:26 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Can you paste some of the relevant code for this example so we can take a look at it? It's hard to guess what the problem is without seeing the actual code.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #3 (permalink)  
Old December 1st, 2003, 02:41 PM
Registered User
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar, Thanks for your "help". I took another look at the problem and took the error message at face value. It was null values in the mfg table for the e-mail contact.

I filled them in with a default value and the application worked great.

I'm new to the VB-Object world. I've been using NT from the alpha 3.1 release and was teaching SQL Server as far back as on OS2 (pre-NT).

I can't count the number of times I've given the advice that would have solved my problem right away.

Thanks,

LT

  #4 (permalink)  
Old December 1st, 2003, 04:02 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Oh well, I am sure that happens to all of us. At least it does happen to me frequently.... ;)

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid Argument ppenn Access VBA 2 May 14th, 2007 10:11 AM
Invalid Use of Null arholly Access VBA 5 February 5th, 2007 08:18 AM
How to set Not Null constraint to Null Columns arasu Oracle 1 August 22nd, 2005 10:09 AM
Invalid Casting for Null column using ODBC rusli ADO.NET 3 December 17th, 2004 06:32 PM
Invalid use of Null: 'cstr' shoakat Classic ASP Databases 1 November 2nd, 2004 07:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.