[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Sample JavaScript Date Code



PureBytes Links

Trading Reference Links

you'll prolly need to format the date into a string before setting it.
 
d


From: Christoper [mailto:turkey@xxxxxxxxxxxxxxx]
Sent: Tuesday, November 23, 2004 3:56 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Sample _javascript_ Date Code


With the following .js code:
-----------------------
FromDate = new Date(2003, 1, 1);
ToDate = new Date(2004, 1, 1);
AA.RangeFromDate = FromDate; <----------- error
AA.RangeToDate = ToDate;
-----------------------

I'm getting a type mismatch at the indicated line.  If anyone can
help that would be great.

BTW AA is the "Analysis" Object created via the AB Object Model, as
per the help files.

thanks,
chris





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada



Yahoo! Groups Links