You need to sign in to do that
Don't have an account?
satheeshrsk
how to test blank value for Integer
Hi All,
Is there any way to test blank values for Integer fileds, for Strings fields
if( Str == '') or Isblank(Str) ...
Any help must be highly appreciated.
Thanks in advance !
and after that test this converted string for blank value as you are doing .
you can check like this for integer
integer i;
if(i==null)
Thank you for the response chiranjeevitg . It is checking only null values, not blanks
are using in apex or formulas?
can yoy try this
if(i==null || i=='')
we cannot use i==''. As this is for string literals.
because NULL is the default value of a String. There is no standard method to check ''(blank) value for Integer field.
If you need it , then you can check
Intege i;
........
.......
If(i == NULL || (i != NULL && String.isBlank(String.valueOf(i)))){
.......
.....
}