Page 1 of 1

Changing a variable to an array.

Posted: Thu Jun 15, 2023 8:26 pm
by mnfisher
I created a variable (buffer) and - too late - realised it should be an array.

On attempting to change it I got the following message:
2023-06-15_20-14-25.png
2023-06-15_20-14-25.png (37.16 KiB) Viewed 893 times
It's minor but this is the 'wrong' sense - I'm trying to convert an integer to an array of integers. Getting rid of the usage of buffer allowed the change to take place . Possibly 'Creating an array from a single value is not possible if variable is in use'?

Re: Changing a variable to an array.

Posted: Fri Jun 16, 2023 9:15 am
by Steve-Matrix
Thanks. I have change the message to say "You cannot change an in-use variable to or from an array or change the number of its array dimensions" as this covers all the cases where that message could be displayed.