I have a VO object with a fill(xml:XML) method.  I have it working
fine except for one place.  My VO has a var beginDate : Date = null;
property.  Problem is that when I am looping through the xml is need to:

// Say prop = "beginDate" at this point in the loop
if ( this[prop] is Date ) ....

This returns false because beginDate is null.  If I change the
declaration to var beginDate : Date = new Date(); it works fine, but
this field can be null by design.  So, how can I determine the type of
object it is when it is null?  In Java, the instanceof would still
work just fine.

Thanks,
Dale

Reply via email to