<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SCL - Get control attributes? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SCL-Get-control-attributes/m-p/55169#M11747</link>
    <description>I have many push button controls on a SAS / AF frame that all serve the same purpose but just have different label values.  Those controls all start with C then get incremented such that I have controls C01 - C50.&lt;BR /&gt;
&lt;BR /&gt;
When a button is clicked I want to be able to extract the value of the LABEL attribute.  Again since all 50 controls have a similar pattern I put all labeled sections togheter as follows:&lt;BR /&gt;
&lt;BR /&gt;
c01: c02: c03: .... c49: c50:&lt;BR /&gt;
  dcl char(16) value ;&lt;BR /&gt;
  value = _self_.label ;&lt;BR /&gt;
  value = getnitemc( _self_, 'label') ;&lt;BR /&gt;
return ;&lt;BR /&gt;
&lt;BR /&gt;
I think that _SELF_ is a pointer to the frame.  How can I generically get the value of the LABEL attribute for the selected or clicked on push button control?</description>
    <pubDate>Mon, 27 Dec 2010 14:26:38 GMT</pubDate>
    <dc:creator>tbellmer</dc:creator>
    <dc:date>2010-12-27T14:26:38Z</dc:date>
    <item>
      <title>SCL - Get control attributes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SCL-Get-control-attributes/m-p/55169#M11747</link>
      <description>I have many push button controls on a SAS / AF frame that all serve the same purpose but just have different label values.  Those controls all start with C then get incremented such that I have controls C01 - C50.&lt;BR /&gt;
&lt;BR /&gt;
When a button is clicked I want to be able to extract the value of the LABEL attribute.  Again since all 50 controls have a similar pattern I put all labeled sections togheter as follows:&lt;BR /&gt;
&lt;BR /&gt;
c01: c02: c03: .... c49: c50:&lt;BR /&gt;
  dcl char(16) value ;&lt;BR /&gt;
  value = _self_.label ;&lt;BR /&gt;
  value = getnitemc( _self_, 'label') ;&lt;BR /&gt;
return ;&lt;BR /&gt;
&lt;BR /&gt;
I think that _SELF_ is a pointer to the frame.  How can I generically get the value of the LABEL attribute for the selected or clicked on push button control?</description>
      <pubDate>Mon, 27 Dec 2010 14:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SCL-Get-control-attributes/m-p/55169#M11747</guid>
      <dc:creator>tbellmer</dc:creator>
      <dc:date>2010-12-27T14:26:38Z</dc:date>
    </item>
  </channel>
</rss>

