<?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: How to clear the listbox selections in SAS AF when i use multiple selections? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348344#M9777</link>
    <description>&lt;P&gt;Well its been a very long time since I used SAS/AF and I can't test this for you but I would try something like this. You need to use SCL statements to clear the selections, not a SUBMIT block.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pushbutton2:                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                
if Listbox2.SELECTEDITEMS ne ' '                                                                                                                                                                                                                                
then                                                                                                                                                                                                                                                            
do;                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                             
Listbox2.SELECTEDITEMS ='';                                                                                                                                                                                                                                     
refresh;
                                                                                                                                                                                                                                                     
end;                                                                                                                                                                                                                                                            
return;                  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Apr 2017 01:24:11 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-04-08T01:24:11Z</dc:date>
    <item>
      <title>How to clear the listbox selections in SAS AF when i use multiple selections?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348333#M9775</link>
      <description>&lt;P&gt;I am creating a GUI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i created a list box with multiple selections. Now i need to clear it using a push button. Can anyone help me to do that ?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 23:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348333#M9775</guid>
      <dc:creator>rdr031</dc:creator>
      <dc:date>2017-04-07T23:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the listbox selections in SAS AF when i use multiple selections?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348335#M9776</link>
      <description>&lt;P&gt;THis is my Work so far&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="aLF-aPX-K0-aPE aLF-aPX-aLK-ayr-auR"&gt;pushbutton2:                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                
if Listbox2.SELECTEDITEMS ne ' '                                                                                                                                                                                                                                
then                                                                                                                                                                                                                                                            
do;                                                                                                                                                                                                                                                             
submit continue;                                                                                                                                                                                                                                                
Listbox2.SELECTEDITEMS ='';                                                                                                                                                                                                                                     
endsubmit;                                                                                                                                                                                                                                                      
end;                                                                                                                                                                                                                                                            
return;                  &lt;BR /&gt;&lt;BR /&gt;But it is not working                                                                                                                                                                                                                                        
          &lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Apr 2017 23:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348335#M9776</guid>
      <dc:creator>rdr031</dc:creator>
      <dc:date>2017-04-07T23:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the listbox selections in SAS AF when i use multiple selections?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348344#M9777</link>
      <description>&lt;P&gt;Well its been a very long time since I used SAS/AF and I can't test this for you but I would try something like this. You need to use SCL statements to clear the selections, not a SUBMIT block.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pushbutton2:                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                
if Listbox2.SELECTEDITEMS ne ' '                                                                                                                                                                                                                                
then                                                                                                                                                                                                                                                            
do;                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                             
Listbox2.SELECTEDITEMS ='';                                                                                                                                                                                                                                     
refresh;
                                                                                                                                                                                                                                                     
end;                                                                                                                                                                                                                                                            
return;                  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 01:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348344#M9777</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-04-08T01:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the listbox selections in SAS AF when i use multiple selections?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348346#M9778</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;But still it is not working&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 01:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348346#M9778</guid>
      <dc:creator>rdr031</dc:creator>
      <dc:date>2017-04-08T01:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the listbox selections in SAS AF when i use multiple selections?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348352#M9779</link>
      <description>&lt;P&gt;Perhaps start by testing your pushbutton like so. A message should show in the message line when the button is pressed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pushbutton2:                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                
_msg_ = 'Button Pressed'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
return; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Apr 2017 02:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-clear-the-listbox-selections-in-SAS-AF-when-i-use/m-p/348352#M9779</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-04-08T02:53:59Z</dc:date>
    </item>
  </channel>
</rss>

