You need to sign in to do that
Don't have an account?
Sudhir Narayanswamy
remove null value from list
Hi,
How to remove null values from list in apex
Thanks
Sudhir
How to remove null values from list in apex
Thanks
Sudhir
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
1) https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_list.htm
Let us know if this will help you
With the details you have given, I assume you have to remove list items from the list if any particular column value is null. If yes, please try the below code.
integer ind = 0 ;
while (ind < listname.size())
{
if ( listname.get(ind).columnname == null)
{ listname.remove(ind);
}
else
{ ind++;
}
}
//Underlined are variable names.
if this is not your requirement, please add more details.
Thanks.
HI
with Set there is an option to remove the null directly instea with index position.
setOfRecords.remove(null) will remove all null records from the set.