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.