2016년 12월 2일 금요일

Add all items in a list


I was wondering how to add all items of a list. In my case I need to add together all items of a listview or tiny db.
Every item in the list is numeric and i need a result of them

-- 
One way is to use a for each item in list block and a variable to hold the total initialized to zero.
inside the for each block add the item to the total.
When the block exits the total will contain the sum of all item values.

-- 
Thank you for posting.

Because  I am a rookie I don't understand your definitions completely. 
Would you have the kindness to illustrate it with an image of the code?

-- 


댓글 없음:

댓글 쓰기