function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
hi @mohammed azhar 23,Here is a dynmic way to store number into list.
list<integer> lstInteger = new list<integer>(); for(integer i=1; i<=20; i++){ lstInteger.add(i); } system.debug(lstInteger); //Output : 1,2,3,4,5,6.....20
like this we can store not only 20 but more than 20 too. you need to change i<=20; this and put any value place of 20 such as 40,100... etc.don't forget to mark it as best answer.Thank you
hi @mohammed azhar 23,
Here is a dynmic way to store number into list.
like this we can store not only 20 but more than 20 too. you need to change i<=20; this and put any value place of 20 such as 40,100... etc.
don't forget to mark it as best answer.
Thank you