Nope, leaving the comparison as below
    if (SrcItem.Person_ID != CompItem.Person_ID) {
results in me being able to add the same name over and over again
    if (SrcItem.Person_ID == CompItem.Person_ID) {
lets me add one name but no other names.



jeff tapper wrote:

> try this =
>
> var SelectionList:Array = new Array();
> var isNew:Boolean = true;
> function addfromIS():Void {
>          var SrcItem =
> IS_RESULTS.dataProvider.getItemAt(IS_RESULTS.selectedIndex);
>          if (SelectionList.length>0) {
>                  for (var i = 0; i<SelectionList.length; i++) {
>                          var CompItem = SelectionList.getItemAt(i);
>                          if (SrcItem.Person_ID != CompItem.Person_ID) {
>                                  isNew = false;
>                          }
>                  }
>          }
>          if (isNew) {
>                  SelectionList.addItem(SrcItem);
>          }
> }
>
>

-- 
Greg Johnson
Owner & Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
----------------------
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to