Get array length?
eagletalontim
Posts: 1,399
Is there a way to get an array length, maybe by how many array indexes are set? Some values will be 0 including the first and last values.
variable[0] := 0 variable[1] := 54 variable[2] := 15300 variable[3] := 0 variable[4] := 1 variable[5] := 0
Comments
Wouldn't it be easier to keep track of the index as the array is filled?
Have you seen this thread? You can backup variables to their original locations in EEPROM so next time RAM is loaded from EEPROM the variable values get restored to the values of the previous session.
Here is a demo.