title: WinDev - Using a variable in a Looper Content Query
body: <p>I am hoping someone will be able to point me in the right direction.  I have a Looper control within WinDev and am filling the Content using a Query.</p>
  
  <p>How do I utilise a global variable within the query?  It seems that it must be passed in as a parameter to the query, however there is no opportunity to set the parameter unless executing the query from code.  It all seems a little contradictory and I am sure I'm missing something obvious.</p>
  
  <p>UPDATE</p>
  
  <p>Having read about MySource but also read that MySource cannot be utilised in an Initialization block; I have moved the query to independent.  Thereby allowing me to set the parameter with</p>
  
  <pre><code>Query name.Parameter = Value
  </code></pre>
  
  <p>However, although the Query is specified in the Content table of the Looper control, it does not seem to return anything.</p>
  
  <p>Have tried calling HExecuteQuery() and LooperDisplay(), neither of which seem to do anything.</p>
  
  <p>The query is a simple select and works when tested in the query editor.</p>
  
  <p>Any help would be greatly appreciated,</p>