loading
 
Bug in VBScript
Emil Valkov  [16 posts]
15 year
I'm using RR 1.8.23.4
I'm trying to use VBScript just to copy an array variable into another.
The last value in the array appears to be dropped.

My .robo file enclosed contains 2 vb_scripts.
The first just sets TEST to 1,2,3,4

The second script is the important one:
it sets TEST1 directly from TEST, and shows the problem. (TEST1 = 1,2,3)
I also tried to copy the array into another array and that strangely seems to make it work (TEST2 = 1,2,3,4)

Thanks,
Emil
program.robo
Anonymous 15 year
Emil,

You are correct! It looks like the SetArrayVariable was off by 1 in setting the array values. This has been corrected in 1.8.23.27 and is available for download. Note that in this corrected version the Dim parameters need to be 3 as apposed to 4 since VB is inclusive, i.e. the element indexes are 0 to 3. Attached is your corrected robofile that should show the correct operation of copying arrays, etc.

Thanks very much for your bug report!

STeven.
program.robo

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index