I don't think there is a bitwise not assignment operator (~=), I'm
guessing it should be ~ vs ~=.

--- In [email protected], "nasawebguy" <[EMAIL PROTECTED]> wrote:
>
> Thanks Tom!
> But I get this error
> 1084: Syntax error: expecting rightparen before bitwisenot
> 
> in the return line below...
> 
> private function filterByProduct( item:Object ) : Boolean
> {
>      var ProductItem:Object = productgrid.selectedItem;
>      if( ProductItem == null ) return false; 
>      return(ProductItem.Product == item.Product || 
> ProductItem.Product ~= item.RelatedProducts );
> }
> 
> Is it a syntax issue? Or something else? 
> 
> I have a couple books, like actionscript cookbook, and searched many 
> sites, but nothing helps with basic AS 3.0 syntax!! Makes for an 
> inefficient learning process. So, I really do appreciate your help!
> 
> Don
> 
> 
> --- In [email protected], Tom Chiverton <tom.chiverton@> 
> wrote:
> >
> > On Saturday 10 Feb 2007, nasawebguy wrote:
> > >      return(ProductItem.Product == item.Product OR
> > >      ProductItem.Product ~= item.ProductRelatedProducts);
> > 
> > return (a == b || a == c)
> > 
> > || is the or operator, and && and.
> > 
> > 
> > -- 
> > Tom Chiverton
> > Helping to heterogeneously target next-generation web-readiness
> > 
> > ****************************************************
> > 
> > This email is sent for and on behalf of Halliwells LLP.
> > 
> > Halliwells LLP is a limited liability partnership registered in 
> England and Wales under registered number OC307980 whose registered 
> office address is at St James's Court Brown Street Manchester M2 
> 2JF.  A list of members is available for inspection at the registered 
> office. Any reference to a partner in relation to Halliwells LLP 
> means a member of Halliwells LLP. Regulated by the Law Society.
> > 
> > CONFIDENTIALITY
> > 
> > This email is intended only for the use of the addressee named 
> above and may be confidential or legally privileged.  If you are not 
> the addressee you must not read it and must not use any information 
> contained in nor copy it nor inform any person other than Halliwells 
> LLP or the addressee of its existence or contents.  If you have 
> received this email in error please delete it and notify Halliwells 
> LLP IT Department on 0870 365 8008.
> > 
> > For more information about Halliwells LLP visit www.halliwells.com.
> >
>


Reply via email to