title: Accessing Powerbuilder Window Instance Variables from General Function
body: <blockquote>
    <p>Blockquote</p>
  </blockquote>
  
  <p>I have multiple windows that all require the same code, w_emp1, w_emp2, w_emp3…. etc.  Thus, it seemed prudent to place this common code into a function say wf_access_test.</p>
  
  <p>Each of these windows has its own set of instance variables. Say is_text_name, is_text_town, is_text_zip_code… etc.</p>
  
  <p>The code for wf_access_test() is below.  Note that a specific window (w_emp1) has been hardcoded.  This allows me to update that specific windows instance variable.</p>
  
  <p><strong>What I need is a method to address the calling window names instance variables, but replace the hardcoded w_emp1 qualifier</strong></p>
  
  <pre><code>w_emp1.is_text_name = ‘Text Updated’     //Updating this windows instance variable - This works!
  </code></pre>
  
  <p>I have tried calling the function with the window name as a value passed to the function with a argument type = window.</p>
  
  <p>ie. wf_access_test(w_emp_1)</p>
  
  <p>Unfortunately, when I then try and replace the passed value with the hardcoded w_emp1 it states - incompatible property type?</p>
  
  <p>Any experts out there who can help?  Many thanks in anticipation. </p>