title: Easier way to define properties in classic ASP?
body: <p>For every property in my class in ASP code I have to use this:</p>
  
  <pre><code>Public Property Get ItemsOnPage()
      ItemsOnPage = m_ItemsOnPage
  end Property
  
  Public Property Let ItemsOnPage(inp)
      m_ItemsOnPage = inp
  End Property
  </code></pre>
  
  <p>This example is for the ItemsOnPage property. Is there any other way that I could use a subroutine somehow? I tried using:</p>
  
  <pre><code>sub subClassProperty(varProperty)
  execute("Public Property Get " &amp; varProperty &amp; "()")
  execute(varProperty &amp; " = m_" &amp; varProperty)
  execute("end Property")
  
  execute("Public Property Let " &amp; varProperty &amp; "(inp)")
  execute("m_" &amp; varProperty &amp; " = inp")
  execute("End Property") 
  end sub
  </code></pre>
  
  <p>but this sub I can not call from Class :-((</p>