Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Is it possible to overwrite an existing array?


DanH May 26, 2011 02:44 PM

Hi,

it is poosible to overwirte an existing array in the programme?
Or it is possible to Reset an Array to 0?

Is there any command to do this?

I am using a CR850 Datalogger.

Thank you for your support!

Best Regards

* Last updated by: DanH on 5/27/2011 @ 8:15 AM *


Sam May 27, 2011 02:09 PM

Public ArrayOne(3) = {0,0,0}

or

Public ArrayTwo(3)
BeginProg
ArrayTwo(1) = 0
ArrayTwo(2) = 0
ArrayTwo(3) = 0
EndProg

or

Public ArrayThree(3)
Dim I
BeginProg
For I = 1 To 3
ArrayThree(I) = 0
Next I
EndProg

or

Public ArrayFour(3)
BeginProg
'move zeros into each of the three indices
Move (ArrayFour(),3,0,1)
EndProg


DanH May 27, 2011 02:15 PM

Tahnk you Sam,

I tried the For Loop, it works very good.

Thanks for your support.

Best Regards

Log in or register to post/reply in the forum.