in reply to How to fix error: Modification of a read-only value

Dear Monks--
Sorry if I haven't provided enough information

O.K. Here is all the code I can think is relevant. You wanted to know what line was generating the error ("Modification of a read-only value attempted"). It was the last line I'm giving here