what is the error thrown?

DK

On 6/26/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> I have this custom component that at the moment just repeats the passed in 
> value.  It works if I pass in a string, but if I pass the date I actually 
> want it does not work.  I can not figure out why.
>
> dayFormat2 custom component.
> <mx:Script>
>   <![CDATA[
>     //Define public variables
>     public var dayData:String;
>   ]]>
> </mx:Script>
>
> <mx:DateFormatter id="dayNum" formatString="DD" />
> <mx:Label text="{dayData}" />
>
> -----------------------
>
> This Works.
> <ns1:dayFormat2 dayData="George" />
>
> This does not work.
> <ns1:dayFormat2 dayData="{DayNum.format(dayCells.currentItem.date)}" />
>
> And neither does this.  Of course for this version I change the dayData type 
> to date in the custom component.
> <ns1:dayFormat2 dayData="{dayCells.currentItem.date}" />
>
> Just to make sure that the date exists as I expect.  If I replace the 
> dayFormat2 custom comment with a label, I get the dates just fine.
> <mx:Label text="{DayNum.format(dayCells.currentItem.date)}" />
>
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> ---------
> | 1 |   |
> ---------  Binary Soduko
> |   |   |
> ---------
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice:  This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:37:2857
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/37
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:37
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to