I doubt that anyone here can answer this question (or this part of the earlier post) based on the information you have given in both posts combined.
Error messages like this tell you which line number in your script has caused the error. You have to show us at least that line of code, along with any other lines of code that are relevant -- that is: for whatever variables are present in the line that causes the error, show us at least the lines where those variables are declared and where values are assigned to them prior to the line that causes the error.
Nothing in the examples given to you in the previous thread would generate this error. None of the code you've posted so far would generate this error. (You haven't posted enough code to show whether it would generate this error.) So you need to show more of your code.
If the code is not ridiculously long, post the whole script. (Do it as an update or reply to this thread, please. Two places for discussing the same problem are more than enough.)
In reply to Re: How to fix error: Modification of a read-only value
by graff
in thread How to fix error: Modification of a read-only value
by Gnat53
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |