Nic
06-24-2004, 05:25 AM
Hi,
I am trying to create a new class that extend basevaluecomponent. As part of this I want to create a variable to hold a date. I want to set the initial value of this variable to todays date. To do this I am trying to define an attrbute, that is populated from the init() method calling:
var time=new Date();
when I do a simple time.getYear(); I get an error:
undefined object does not have a property 'getYear'
To questions why is the Jscript failing init and two is an attribute the correct place to store the data for the control.
Cheers
Nic
I am trying to create a new class that extend basevaluecomponent. As part of this I want to create a variable to hold a date. I want to set the initial value of this variable to todays date. To do this I am trying to define an attrbute, that is populated from the init() method calling:
var time=new Date();
when I do a simple time.getYear(); I get an error:
undefined object does not have a property 'getYear'
To questions why is the Jscript failing init and two is an attribute the correct place to store the data for the control.
Cheers
Nic