Hi Bill,

my curiousity is up now.

I am not familiar with nulls in MapBasic myself, but I noticed in MapInfo a
null is a 0 (zero) if the field is numeric and a string field is an empty
string (i.e. "").  At least this is how it is handled in the SQL.

In a string situation, is the empty string in quotations also evaluated as 0
(zero) programmatically by MapInfo?

Don Mitchell


-----Original Message-----
From: Bill Thoen [mailto:[EMAIL PROTECTED]
Sent: December 7, 2004 5:07 PM
To: John Polasky
Cc: [EMAIL PROTECTED]
Subject: Re: MI-L MapBasic Null Value


On Tue, 7 Dec 2004, John Polasky wrote:

> Using an If...Then statement, how do I tell MapInfo to identify that the
> variable is empty?  I can't use zero for the check obviously, but is
> there a MapBasic code that identifies a null value?

No. A blank is the same as a zero to MapInfo.


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14415

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 14423

Reply via email to