using proc import the data is present as it should be.
=========================================================================
Date: Tue, 18 Feb 2003 11:45:10 -0500
Reply-To: Randy Herbison <RandyHerbison@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Randy Herbison <RandyHerbison@WESTAT.COM>
Subject: Re: SAS/AF lists
Content-Type: text/plain; charset="iso-8859-1"
Graeme,
This SCL code uses the variableValuesList data model to populate listbox1
and then sets the value of listbox2's items attribute based on the
selectedItems attribute value for listbox1.
dcl num rc;
init:
listbox1.model='variableValuesList1';
variableValuesList1.dataset='sashelp.class';
variableValuesList1.variable='age';
return;
listbox1:
rc=clearlist(listbox2.items);
do i=1 to listlen(listbox1.selectedItems);
select(left(getitemc(listbox1.selectedItems,i)));
when ('11') rc=insertc(listbox2.items,'Eleven',-1);
when ('12') rc=insertc(listbox2.items,'Twelve',-1);
when ('13') rc=insertc(listbox2.items,'Thirteen',-1);
when ('14') rc=insertc(listbox2.items,'Fourteen',-1);
when ('15') rc=insertc(listbox2.items,'Fifteen',-1);
when ('16') rc=insertc(listbox2.items,'Sixteen',-1);
otherwise;
end;
end;
listbox2._refresh();
return;
RandyHerbison@westat.com
-----Original Message-----
From: Graeme.Kirton@FILCS.COM [mailto:Graeme.Kirton@FILCS.COM]
Sent: Tuesday, February 18, 2003 10:51 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: SAS/AF lists
For those who can help me as Im stuck.
I've two list boxes, both allow multiple selections. My first listbox has
code to populate from lookup_spc dataset;
dset=open('Lookup_SPC');
nlevels=0;
rc=lvarlevel(dset,'Template',nlevels,TList);
rc=rc;
lstTemplate.Items=Tlist;
dset=close(dset);
Thing is........ I want Listbox2's population only to be based on
Listbox1's selections.
Lookup_Spc
-------------------
Template Chart
1 10
2* 11*
3* 13*
3* 15*
4* 14*
So from the above, chosing 2,3,4 from Listbox1 would show 4charts in
Listbox2.
Thank You listers.
--------------------------------------------------------------
Graeme Kirton
IT Developer
Filtronic Compound Semiconductors Ltd
"IMPORTANT NOTICE
This email may contain confidential information and will be protected by
copyright.
It is intended only for the use of the person(s) to whom it is addressed
and any unauthorised
use (including forwarding or dissemination the contents) may be unlawful.
If you receive this email by mistake, please advise the sender immediately
by using the reply facility on
your email software and delete the email from your computer.
Opinions, conclusions and other information in this email that do not
relate to the official business
of this organisation shall be understood as neither given nor endorsed by
it.
If this message forms part of a quotation for the supply of goods, the
quotation is an invitation to treat only. No contract will come into
effect until the Company issuing such quotation (or Filtronic plc or one of
its subsidiaries on its behalf) issues an acknowledgment of order for the
supply of such goods. The contract will be on the terms of such
acknowledgment of order.