Zhopa
Member
Hi everybody!
I'm struggling with 2 dimensional array. The task is simple: to keep records for last 10 user log-ins (user ID# and time stamp).
So I created array User_Stamp (DINT[7]) where I put User_ID# to element [0] and date_time_stamp to next 6 elements (discarding ms).
Now I'm trying to move this stamp to array Login_History (DINT[10,7]) and shifting data somehow.
I found nice solution for one dimensional array but stuck on two...
Any ideas?
Thanks!
I'm struggling with 2 dimensional array. The task is simple: to keep records for last 10 user log-ins (user ID# and time stamp).
So I created array User_Stamp (DINT[7]) where I put User_ID# to element [0] and date_time_stamp to next 6 elements (discarding ms).
Now I'm trying to move this stamp to array Login_History (DINT[10,7]) and shifting data somehow.
I found nice solution for one dimensional array but stuck on two...
Any ideas?
Thanks!