=== and !== operators to verify that both comparison objects are of the same type, with the same content: Thanks,
with Regards, Jitendra Jain Software Engineer 91-9979960798 ----- Original Message ---- From: donvoltz <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Saturday, June 14, 2008 8:22:24 AM Subject: [flexcoders] Strange behavior with array filter function Can anyone tell me what I am doing wrong with this filter function. I am passing in an array of valueObjects into the following filter function public static function filterCallSchedule( o:*, index:int, arr:Array):Boolean { var modelLocator: AppModelLocator = AppModelLocator. getInstance( ); trace('ooooooo - ' + o.callDate); trace('mmmmmmm - ' + modelLocator. currentlySelecte dCallDate) ; trace(ObjectUtil. toString( o)); if (o.callDate == modelLocator. currentlySelecte dCallDate) { trace(true); return true; } else { trace(false) ; return false; } } This is some of the data returned as I trace this functions execution ooooooo - Thu Jun 26 00:00:00 GMT-0400 2008 mmmmmmm - Mon Jun 30 00:00:00 GMT-0400 2008 (com.dynamicmedical ventures. De2ORApplication .vo::CallSchedul eVO)#0 callDate = Thu Jun 26 00:00:00 GMT-0400 2008 callLocationID = 5 callScheduleID = 985 callScheduleNote = "" createdBy = 1 createdDTS = Wed May 28 04:41:05 GMT-0400 2008 modifiedBy = 0 modifiedDTS = (null) userID = 25 false ooooooo - Fri Jun 27 00:00:00 GMT-0400 2008 mmmmmmm - Mon Jun 30 00:00:00 GMT-0400 2008 (com.dynamicmedical ventures. De2ORApplication .vo::CallSchedul eVO)#0 callDate = Fri Jun 27 00:00:00 GMT-0400 2008 callLocationID = 5 callScheduleID = 986 callScheduleNote = "" createdBy = 1 createdDTS = Wed May 28 04:41:05 GMT-0400 2008 modifiedBy = 0 modifiedDTS = (null) userID = 2 false ooooooo - Mon Jun 30 00:00:00 GMT-0400 2008 mmmmmmm - Mon Jun 30 00:00:00 GMT-0400 2008 (com.dynamicmedical ventures. De2ORApplication .vo::CallSchedul eVO)#0 callDate = Mon Jun 30 00:00:00 GMT-0400 2008 callLocationID = 5 callScheduleID = 987 callScheduleNote = "" createdBy = 1 createdDTS = Wed May 28 04:41:05 GMT-0400 2008 modifiedBy = 0 modifiedDTS = (null) userID = 7 false When this function runs through all of the data, I am left with an empty array for the filtering. I can not understand why the last group of data, where the two dates are identical does not return true and therefore be included in the filtered array. Does anyone have an idea of what I am doing wrong with this Thanks Don