wirelessliquid
Member
Hi Guys,
Does anyone know a good way to count populated elements in an array?
I have 2 arrays of 60 elements which hold strings.
When a string holds no data '' its population should be 0
when a string holds data 'ABCD' its population should be 1
I need the total population of both arrays.
Working in Logix 21.11
Seen a similar post for integers but with no clear answer.
http://www.plctalk.net/qanda/showthread.php?t=112140
Does anyone know a good way to count populated elements in an array?
I have 2 arrays of 60 elements which hold strings.
When a string holds no data '' its population should be 0
when a string holds data 'ABCD' its population should be 1
I need the total population of both arrays.
Working in Logix 21.11
Seen a similar post for integers but with no clear answer.
http://www.plctalk.net/qanda/showthread.php?t=112140