February 9, 2020
how can ı make a total number the end of list?
Like
(0)
Comments
(5)
0
5
ı must make a salary list and the end of page(under of the list number) ı wıll show the number.like a excell.
how can ı write with coldfusıon?help please.
for exp: 1 =10
2=20
30
5 Comments
2020-02-11 18:01:33
There are many ways, but perhaps the easiest solution may be to simply convert the list to an array, and then use the CF arraysum function. That could be done in one line (using BKBK’s shown salarylist list):
arraysum(listtoarray(salarylist));
I can’t tell, nurcanb, if you meant to be showing us code in your first example. It looks like maybe you put in CFML and it was lost. You may want to use the “preformatted” option in the drop-down for style while typing here.
Let us know if that code fragment I shared above helps.
Like
(2)
Add Comment
You must be logged in to post a comment.