From: "Data _null_;" on
see:

http://support.sas.com/kb/25/991.html

On 12/2/09, Murphy Choy <goladin(a)gmail.com> wrote:
> Hi,
>
> I was trying out af and came across this problem with the multi select list box. The list box contains a group of selected variables. But when I use the listbox.selecteditems, it just throw me a number instead of characters. Any suggestions?
>
> Sent from my BlackBerry Wireless Handheld
>
> --
> Regards,
> Murphy Choy
>
> Certified Advanced Programmer for SAS V9
> Certified Basic Programmer for SAS V9
>
From: Murphy Choy on
Hi,

Thanks! A very helpful example.

On Wed, Dec 2, 2009 at 9:26 PM, Data _null_; <iebupdte(a)gmail.com> wrote:

> see:
>
> http://support.sas.com/kb/25/991.html
>
> On 12/2/09, Murphy Choy <goladin(a)gmail.com> wrote:
> > Hi,
> >
> > I was trying out af and came across this problem with the multi select
> list box. The list box contains a group of selected variables. But when I
> use the listbox.selecteditems, it just throw me a number instead of
> characters. Any suggestions?
> >
> > Sent from my BlackBerry Wireless Handheld
> >
> > --
> > Regards,
> > Murphy Choy
> >
> > Certified Advanced Programmer for SAS V9
> > Certified Basic Programmer for SAS V9
> >
>



--
Regards,
Murphy Choy

Certified Advanced Programmer for SAS V9
Certified Basic Programmer for SAS V9
DataShaping Certified SAS Professional
From: Murphy Choy on
Hi,

Thanks for the answer.

A simple solution to my problems.

------Original Message------
From: Randy Herbison
To: goladin(a)gmail.com
To: SAS-L(a)LISTSERV.UGA.EDU
Subject: RE: Sas/af multiple select list box problem
Sent: Dec 2, 2009 11:18 PM

Murphy,

The selectedItems attribute is an SCL list. The number you report is the list identifier. You need to use SCL list processing functions to access the selected item's value:

dcl char(40) itemValue;

do i=1 to listlen(listbox.selectedItems);
itemValue=getitemc(listbox.selectedItems,i);
end;

If there is only a single selection, the selectedItem (singular) attribute is a character value.

-Randy

-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of Murphy Choy
Sent: Wednesday, December 02, 2009 7:26 AM
To: SAS-L(a)LISTSERV.UGA.EDU
Subject: Sas/af multiple select list box problem

Hi,

I was trying out af and came across this problem with the multi select list box. The list box contains a group of selected variables. But when I use the listbox.selecteditems, it just throw me a number instead of characters. Any suggestions?

Sent from my BlackBerry Wireless Handheld

--
Regards,
Murphy Choy

Certified Advanced Programmer for SAS V9
Certified Basic Programmer for SAS V9


Sent from my BlackBerry Wireless Handheld

--
Regards,
Murphy Choy

Certified Advanced Programmer for SAS V9
Certified Basic Programmer for SAS V9
From: Randy Herbison on
Murphy,

The selectedItems attribute is an SCL list. The number you report is the list identifier. You need to use SCL list processing functions to access the selected item's value:

dcl char(40) itemValue;

do i=1 to listlen(listbox.selectedItems);
itemValue=getitemc(listbox.selectedItems,i);
end;

If there is only a single selection, the selectedItem (singular) attribute is a character value.

-Randy

-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of Murphy Choy
Sent: Wednesday, December 02, 2009 7:26 AM
To: SAS-L(a)LISTSERV.UGA.EDU
Subject: Sas/af multiple select list box problem

Hi,

I was trying out af and came across this problem with the multi select list box. The list box contains a group of selected variables. But when I use the listbox.selecteditems, it just throw me a number instead of characters. Any suggestions?

Sent from my BlackBerry Wireless Handheld

--
Regards,
Murphy Choy

Certified Advanced Programmer for SAS V9
Certified Basic Programmer for SAS V9