<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.oehive.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>The OpenEdge Hive - set</title>
 <link>http://www.oehive.org/taxonomy/term/480/0</link>
 <description></description>
 <language>oehive</language>
<item>
 <title>Object Attribute Setter and Getter</title>
 <link>http://www.oehive.org/node/1183</link>
 <description>&lt;p&gt;I was playing with OOP/ABL in v10.1A, when I noticed my class unnecessarily growing because of repeatedly creating set/get methods. Some OOP language I&#039;ve seen has one liner setter/getter. I thought there should be a way of having &quot;one-liner&quot; (well, not really) as well for 10.1A. :-)&lt;/p&gt;
&lt;p&gt;So here goes..enhance if you must..&lt;/p&gt;
&lt;pre&gt;
  /* =====================
      here&#039;s the meat!!! 
      includes/SetGet.i
     
      1 - variable name
      2 - data type
      ===================== */
     
  DEFINE PROTECTED VARIABLE {1} AS &quot;{2}&quot; NO-UNDO.
 
  METHOD PUBLIC &quot;{2}&quot; get{1}():&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/ooabl&quot; class=&quot;og_links&quot;&gt;Object-Oriented ABL Techniques&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/1183&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/1183#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/482">attribute</category>
 <category domain="http://www.oehive.org/taxonomy/term/481">get</category>
 <category domain="http://www.oehive.org/taxonomy/term/480">set</category>
 <category domain="http://www.oehive.org/taxonomy/term/136">OOABL</category>
 <group domain="http://www.oehive.org/ooabl">Object-Oriented ABL Techniques</group>
 <pubDate>Wed, 04 Jun 2008 03:44:41 +0000</pubDate>
 <dc:creator>jeisma</dc:creator>
 <guid isPermaLink="false">1183 at http://www.oehive.org</guid>
</item>
</channel>
</rss>
