Thanks Paul.  This should help me learn how to write it.   I just read
somewhere about ~= and it sounded like it acted similar to a simple LIKE
in SQL.  Or a simple CONTAINS in CF.

I appreciate it.

Don


--- In [email protected], "Paul Williams" <[EMAIL PROTECTED]> wrote:
>
> The AS3 operators are documented here:
>
>
>
> http://livedocs.macromedia.com/flex/2/langref/operators.html
>
>
>
> For information about AS3 syntax, the language-elements section of the
> language reference is a good place to start:
>
>
>
> http://livedocs.macromedia.com/flex/2/langref/language-elements.html
>
>
>
> And for finding a match within a comma-separated String see below:
>
>
>
>
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp
> .htm?href=00001875.html
>
>
>
> Paul
>
>
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of nasawebguy
> Sent: Wednesday, February 14, 2007 9:06 AM
> To: [email protected]
> Subject: [flexcoders] Re: filter AS syntax question
>
>
>
> 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]
<mailto:flexcoders%40yahoogroups.com>
> , 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