Quote:

As for shortening your code, it looks to me like all your if/else/elseif's are sections of code doing the same thing, except for changing 1 portion of the message string. If this is correct, you can simplify by using the if/else/else to set the value of a variable, then have only 1 snippet doing the read/writes, and substituting the variable where needed within that shared section.


im not sure what you mean there could you give me an example in code please?

also the outcome from the debug i posted earlier might have crossed with you new reply