Click here to Skip to main content
16,005,091 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Strange NULL... Pin
Philip Patrick7-May-02 9:51
professionalPhilip Patrick7-May-02 9:51 
GeneralRe: Strange NULL... Pin
Philip Patrick7-May-02 9:58
professionalPhilip Patrick7-May-02 9:58 
GeneralRe: Strange NULL... Pin
Nick Parker7-May-02 18:08
protectorNick Parker7-May-02 18:08 
GeneralRe: Strange NULL... Pin
Philip Patrick7-May-02 21:04
professionalPhilip Patrick7-May-02 21:04 
GeneralRe: Strange NULL... Pin
David Wengier7-May-02 21:42
David Wengier7-May-02 21:42 
GeneralRe: Strange NULL... Pin
Philip Patrick7-May-02 21:51
professionalPhilip Patrick7-May-02 21:51 
GeneralRe: Strange NULL... Pin
Nick Parker8-May-02 3:24
protectorNick Parker8-May-02 3:24 
GeneralRe: Strange NULL... Pin
Daniel Turini7-May-02 23:13
Daniel Turini7-May-02 23:13 
In most languages that properly supports them (e.g. SQL), null values are a kind of "dead end" values. Every expression that involves a null value should become null or a type cast error. It varies from language to language what's a type cast error or a null, but the principle is the same:

So, Null + 12 results Null
Null * 2 results Null
Null == 12 results Null.
Null == Null results Null.

Well, VBScript automatically casts Null to a boolean False, so both checks fail.
Try with SQL (any decent SQL implementation) and you'll get the same results.
In fact, in SQL you should use "IS NULL" and not "= NULL" in queries. This is a common bug I see.

Crivo
Automated Credit Assessment
GeneralRe: Strange NULL... Pin
Philip Patrick7-May-02 23:27
professionalPhilip Patrick7-May-02 23:27 
GeneralRe: Strange NULL... Pin
James T. Johnson7-May-02 23:38
James T. Johnson7-May-02 23:38 
GeneralRe: Strange NULL... Pin
8-May-02 1:06
suss8-May-02 1:06 
GeneralRe: Strange NULL... Pin
Philip Patrick8-May-02 1:13
professionalPhilip Patrick8-May-02 1:13 
GeneralRe: Strange NULL... Pin
Philip Patrick8-May-02 1:07
professionalPhilip Patrick8-May-02 1:07 
GeneralRe: Strange NULL... Pin
James T. Johnson8-May-02 1:29
James T. Johnson8-May-02 1:29 
GeneralRe: Strange NULL... Pin
Philip Patrick8-May-02 1:53
professionalPhilip Patrick8-May-02 1:53 
GeneralQuery Excel Sheets Count Pin
serberwww6-May-02 22:08
serberwww6-May-02 22:08 
GeneralASP Forum Code Pin
sriani6-May-02 9:00
sriani6-May-02 9:00 
GeneralSome 100 % beginner ASP.NET tutorials PLEASE! Pin
Rickard Andersson206-May-02 0:28
Rickard Andersson206-May-02 0:28 
Generalcode-behind in ASP.NET Pin
Mazdak5-May-02 5:00
Mazdak5-May-02 5:00 
GeneralRe: code-behind in ASP.NET Pin
Not Active5-May-02 5:12
mentorNot Active5-May-02 5:12 
GeneralRe: code-behind in ASP.NET Pin
Mazdak5-May-02 6:55
Mazdak5-May-02 6:55 
GeneralDeploying ASP.NET project Pin
Not Active5-May-02 3:32
mentorNot Active5-May-02 3:32 
GeneralRe: Deploying ASP.NET project Pin
Not Active6-May-02 2:10
mentorNot Active6-May-02 2:10 
QuestionI just want to greet the world... Where do I start? Pin
DeadWisdom3-May-02 18:48
DeadWisdom3-May-02 18:48 
AnswerRe: I just want to greet the world... Where do I start? Pin
James T. Johnson3-May-02 19:03
James T. Johnson3-May-02 19:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.