Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

SRP_Array Rotate strips decimal number

When I rotate my array to a list, SRP_Array seems to strip my latest number while it shouldn't. This can be reproduced with the following code:

arr<1,1> = 1616
arr<1,2> = 1617
arr<1,3> = 1619
arr<1,4> = 1621

arr<2,2> = 0.75
arr<2,3> = 0.25

arr<3,1> = 1
arr<3,2> = 0.5
arr<3,4> = 0.25

arr<4,1> = 0.5

arr<5,2> = 0.5
arr<6,1> =1


arr = SRP_Array("Rotate", arr, @FM, @VM)
I changed the @VM delimiter to ; for readability. The output is:

1616;;1;0.5;;1
1617;0.75;0.5;;0.5
1619;0.25;
1621;;0.
Check the last line, where the last element is 0. while it should be 0.25.


Comments

  • The process wasn't making room for extra delimiters that would inevitably result from empty elements in the original array. RDK 2.0.2 RC2 fixes this and your SRP_COM issue.
Sign In or Register to comment.