[flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread pbrendanc
I'd like to extract the list of emps from the following XML where name starts with 'Jo' (returns Jones, Johnson). In SQL I can use the expression 'where name like 'Jo%'. Anyone have examples of how this be done via an E4X expression (I could not find any examples of this in the docs). TIA, Patri

RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Ryan Graham
TECTED] On Behalf Of pbrendanc Sent: Thursday, November 06, 2008 12:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] E4X equivalent to SQL where 'like %' expression ? I'd like to extract the list of emps from the following XML where name starts with 'Jo' (returns Jo

RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Ryan Graham
lto:[EMAIL PROTECTED] On Behalf Of Ryan Graham Sent: Thursday, November 06, 2008 3:00 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ? The child nodes can be accessed like properties. For a starts-with effect, you would

RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Tracy Spratt
ubject: RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ? Haha, looking at that, a more intuitive option would probably use the indexOf() function instead of substring, that way indexOf(input) == 0; //starts-with behavior indexOf(input) > -1; //contains

RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Ryan Graham
oups.com Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ? Haha, looking at that, a more intuitive option would probably use the indexOf() function instead of substring, that way indexOf(input) == 0; //starts-with behavior indexOf(input) > -1

Re: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Josh McDonald
- > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Tracy Spratt > *Sent:* Thursday, November 06, 2008 3:46 PM > > *To:* flexcoders@yahoogroups.com > *Subject:* RE: [flexcoders] E4X equivalent to SQL where 'like %' > expr

RE: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Ryan Graham
D] On Behalf Of Josh McDonald Sent: Thursday, November 06, 2008 3:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] E4X equivalent to SQL where 'like %' expression ? It's a great syntax. The real question now becomes: "When are we going to get to run .() on Array,

Re: [flexcoders] E4X equivalent to SQL where 'like %' expression ?

2008-11-06 Thread Josh McDonald
" > > > On Fri, Nov 7, 2008 at 8:32 AM, Ryan Graham <[EMAIL PROTECTED]>wrote: > >> Ah, like a true lambda expression -- good tip! >> >> -- >> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On >> Behalf Of *Tracy Spratt