Dan,

Try using


if (selectedMeter.equals(new CSpNull()) )


-Nimmi 
                

-----Original Message-----
From: Howarth, Dan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 02, 1999 10:25 AM
To: [EMAIL PROTECTED]
Subject: [ND] Unable to check for Null Value


Am unable to determine is a variable contains a Null value, since the
if will always evaluate to a not Null condition.   Have verified in the
debugger
that the variable selectedMeter does in fact contain a null value, but the
if will always evaluate to a not Null condition.   This is my code:

CSpValue selectedMeter = getDisplayFieldValue ("cbMeters"); 
if (selectedMeter.isNull())

any ideas as to what the problem is?  any help on this is very much
appreciated.  thanks.






PG&E Gas Transmission Texas and any other company referenced herein which
uses the PG&E name or logo are not the same company as Pacific Gas and
Electric Company, the California utility.  These companies are not regulated
by the California Public Utilities Commission, and customers do not have to
buy products from these companies in order to continue to receive quality
regulated services from the utility.
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to