Hi all,

I’m wondering how to make a sum of all the items of a list? with out a for each loop and using CType.

Kind Regards,

JR

Hi all,

I’m wondering how to make a sum of all the items of a list? with out a for each loop and using CType.

Kind Regards,

JR

Hi @Joeri_Rethy,

Can you describe a little more. What type of list is this. Are the items a numbers or something else. How final sum should look like? Etc.

List of Integers → output is just the total sum of these integers.

theList.Sum(function(x) x) will return the sum of list’s elements.

7 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.