question about the formatterof the  value returned  by findTask

Discussion created by steeeeps on Dec 14, 2011
Latest reply on Jan 9, 2012 by rnarayanan-esristaff
i'm the first time use the findtask ,and i've a question  about that :
the code in flex :
private function myResultFunction(event:FindEvent):void{
   for(var i:Number=0;i<event.findResults.length;i++)
    var result:FindResult=event.findResults[i] as FindResult;
    var graphic:Graphic=result.feature;
    for(var key:String in graphic.attributes)
     trace(graphic.attributes[key]);  // if the value is null in database, this consloe  "Null"
     trace(graphic.attributes[key] is String) // but this  console  "true"
     trace(graphic.attributes[key]==null);  // and this console "false"

i saw that all value  in attributes is in string-type  ,also the objects saved in database in date-type  or null  .and  the result t is not the same with querytask.
so hao can i get the same type i have saved in database in findtask ?

thanks for your help !