There may not be a duplicate variable on the line, but one of those variables have probably already been defined in the scope (as it looks like it's in the global scope right now). Search for other VAR statements that may be causing this.
That would be totally fine, as long as credit is given wherever credit is due (so that goes for other's programs too). I'd actually be happy about that.