You need to sign in to do that
Don't have an account?
Mrithula
comma separated values to list values...
hi,
i have a list that contains comma separated values (for eg, answerlist ) .
now i want to remove the commas and to store the values un a list..which i want to add to the wrapper...
anyone help me to do this...
{
wrapperList.add(new Wrapper(key));
}
All Answers
Hi,
Can you give an example?
What does the first list looks like? Or is it a string?
// Niklas
Here is the example
String valstring = 'a,b,c,d';
String[] strs = valstring.spilt(',');
for(String key : str.split(','))
{
wrapperList.add(new Wrapper(key));
}
my values are present in the list , not in the string variable.
for eg:
answerlist=[select Evaluation__c from Result__c where id=:resultdetail.Id] ;
here Evaluation__c contains the values like ( True, image, 2,"text/logo")
so how can i get comma separated values from answerlist
{
wrapperList.add(new Wrapper(key));
}