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
amateur1amateur1 

how to display a single values of a list

hi all

 

 

i have taken some string values into a list

now my requirement is i want to display each of them single

 

for ex: i have taken a,b,c values into a list variable str

 

 

now if i give str[0] i should get a

str[1] then b and so on how can i display them in a visual force page

eric.luiseric.luis

You can use the dataTable component on visualforce, the you link the controller array variable and a variable to use on the screen.

It works like a for loop.