function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
.Net Api.Net Api 

Contains problem

Dear support,

                              I am using contains method to compare the listnames when the listname having same name (i.e 1234 ,123456)   suppose if i selected the second one the first is coming as checked

 

 

below is my sample code

 

  for(Integer i=0; i<results.size();i++) {
                  for (Integer j = 0; j < listChecked.size(); j++) {
                     if(listChecked[j].glName.contains(results[i].lName)) {
                                            results[i].checked = true;
                    }
                  }
                }

 

Let me know if any one can help me 

 

 

Regards,

kranthi nagisetty