<?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 Re: SAS/AF How to determine which selection is chosen in a listbox in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20879#M4362</link>
    <description>Again, I haven't worked in a multiple OS environment such as you currently have for a long time, but some of the mainframes differentiate between HIGHLIGHTING, moving through a list with keys, and then SELECTING the highlighted one. I vaguely remember tabing through lists and then using a + key to select in CMS for example. It may be that the selection hasn't happened.</description>
    <pubDate>Mon, 07 Mar 2011 22:17:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2011-03-07T22:17:22Z</dc:date>
    <item>
      <title>SAS/AF How to determine which selection is chosen in a listbox</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20872#M4355</link>
      <description>Hi everyone. I am a beginning AF programmer although I do have a few years in base SAS. I am trying to use a LISTBOX to present choices for a user to select one by tabbing, clicking, or scrolling to. Since I am porting this to a mainframe, I must be able to capture the enter key being used to know when a selection is made. I have been playing with the EVENT() capture and can't seem to get that to work right. Does anyone have any suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,   Ed</description>
      <pubDate>Wed, 02 Mar 2011 19:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20872#M4355</guid>
      <dc:creator>EdD</dc:creator>
      <dc:date>2011-03-02T19:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/AF How to determine which selection is chosen in a listbox</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20873#M4356</link>
      <description>It would be helpful if you could provide your SCL code so we can see what you are trying to do.</description>
      <pubDate>Thu, 03 Mar 2011 23:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20873#M4356</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2011-03-03T23:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/AF How to determine which selection is chosen in a listbox</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20874#M4357</link>
      <description>The SCL code is what I am trying to create. I have a listbox on a frame. I populated the listbox and can see movement when I use the mouse or cursor. I want to execute a specific group of SAS code based on the selection from the listbox. How can I know the user 'selected' one of the entries rather than scrolled down using the cursor control?</description>
      <pubDate>Fri, 04 Mar 2011 18:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20874#M4357</guid>
      <dc:creator>EdD</dc:creator>
      <dc:date>2011-03-04T18:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/AF How to determine which selection is chosen in a listbox</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20875#M4358</link>
      <description>I don't have references for AF currently but I would look at the methods associated with listboxes. I vaguely remember being able to do something like:&lt;BR /&gt;
&lt;BR /&gt;
rc =get_selected(listboxidentifier);&lt;BR /&gt;
&lt;BR /&gt;
But I think the RC was the list item identfier not the actual value displayed in the box.&lt;BR /&gt;
&lt;BR /&gt;
It didn't matter if you used a mouse or key strokes to navigate the list.</description>
      <pubDate>Fri, 04 Mar 2011 18:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20875#M4358</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-03-04T18:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/AF How to determine which selection is chosen in a listbox</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20876#M4359</link>
      <description>If your listbox is named lstbox then use this code in a labeled section:&lt;BR /&gt;
&lt;BR /&gt;
lstbox:&lt;BR /&gt;
  value = lstbox.selecteditem ;&lt;BR /&gt;
  put value = ;&lt;BR /&gt;
return ;</description>
      <pubDate>Fri, 04 Mar 2011 19:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20876#M4359</guid>
      <dc:creator>tbellmer</dc:creator>
      <dc:date>2011-03-04T19:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/AF How to determine which selection is chosen in a listbox</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20877#M4360</link>
      <description>I have tried both methods and I can get the return code along with the value, however it does not matter if I use the tab or down arrow on the keyboard it appears as if the item was selected when in reality it was just scrolled past. I have tried to capture the enter key being pressed as an EVENT(), but that does not seem to work either.</description>
      <pubDate>Mon, 07 Mar 2011 15:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20877#M4360</guid>
      <dc:creator>EdD</dc:creator>
      <dc:date>2011-03-07T15:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/AF How to determine which selection is chosen in a listbox</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20878#M4361</link>
      <description>Try &lt;A href="http://support.sas.com" target="_blank"&gt;http://support.sas.com&lt;/A&gt; - then click on &lt;B&gt;submit a problem&lt;/B&gt;.  The SAS/AF tech support group is exceptionally good.</description>
      <pubDate>Mon, 07 Mar 2011 16:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20878#M4361</guid>
      <dc:creator>tbellmer</dc:creator>
      <dc:date>2011-03-07T16:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/AF How to determine which selection is chosen in a listbox</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20879#M4362</link>
      <description>Again, I haven't worked in a multiple OS environment such as you currently have for a long time, but some of the mainframes differentiate between HIGHLIGHTING, moving through a list with keys, and then SELECTING the highlighted one. I vaguely remember tabing through lists and then using a + key to select in CMS for example. It may be that the selection hasn't happened.</description>
      <pubDate>Mon, 07 Mar 2011 22:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-AF-How-to-determine-which-selection-is-chosen-in-a-listbox/m-p/20879#M4362</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-03-07T22:17:22Z</dc:date>
    </item>
  </channel>
</rss>

