Sunday, 9 July 2017

Program to Demonstrate usage of List in Apex

Program to Demonstrate usage of List in Apex


Public class list example 

Public list <string> result {set; get;} 
Public list example (). 

Result = new list <string> (); 
Result. add (‘Sam’);
Result. add (‘ram’); 
Result. add (‘hair’); 
Result. add (1,’kumar’); 
}

<Apex: page controller = “list example”>
<apex: page block> 
<apex: page block table value = “{! result}” var = “a” > 
<apex: column value = “{! a}”/> 
<apex: page block > 
<apex: page> 

No comments:

Post a Comment