OK, after another evening hard at it, I have come up with a fresh problem. cool hey :)
I want to filter a recordset in one listbox (events) using multiple values from another listbox (categories). I have it working using single category values, but I'm having trouble with multiple categories. As far as I can tell, the filter function can only accept simple values, so I'm passing it a comma-delimited list like so: selectedItemsArray = categorySelector_lb.getSelectedItems(); selectedCategoriesList = selectedItemsArray.toString(); rsFilteredEvents = rsEvents.filter(programFilter,selectedCategoriesList); In ColdFusion, I would loop over the list, do the comparisons, and return the records that matched one of the values in the string. But ActionScript doesn't seem to have any list functions. Any ideas in how I should proceed in my filter function? Thanks in advance, -- Kay Smoljak ------------------------ http://kay.smoljak.com "Kay Smoljak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Thanks Andrew, that does help. Turns out I had the comparison operator > wrong. Doh! > > -- > Kay Smoljak > ------------------------ > http://kay.smoljak.com > > "Andrew Muller" <[EMAIL PROTECTED]> wrote : > > Typically I'd write a filter like this: > > > > getChildLinks = function(aRecord, pageID) { > > return (aRecord.parentID == pageID); > > } > > > > --- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
