I use a customIsNull method to handle null
or empty string.

-Chip
Team NetDynamics

CSpValue val = getDisplayFieldValue("txbXXX");

if ( customIsNull(val) )
{
   //null processing
}

//THIS IS IN AN ANCESTOR PAGE
boolean customIsNull(CSpValue val)
{
   boolean isnull = false;

   if ( val.isNull() )
   {
      isnull = true;
   }
   else
   {
      if ( val.toString().equals("") )
      {
         isnull = true;
      }
   }

   return isnull;
}


"Howarth, Dan" <[EMAIL PROTECTED]> wrote:
>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]

Reply via email to