title: "this" vs. "element" keyword in X++
body: <p>When writing code in X++ you sometimes need to reference <code>this.functionYouWant()</code> and sometimes it is <code>element.FunctionYouWant()</code>. Sometimes both are in scope. I often try one and if the function I want isn't there I try the other. Is there a rule that explains when to use <code>this</code> and when to use <code>element</code>? </p>