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

[amibroker] jscript limitation



PureBytes Links

Trading Reference Links

The following code failed in .afl because the Amibroker script engine
can not recognize Date object.

Is the AB's jscript version older?


EnableScript("jscript");
<%

function PrevDate(Year,Month,Date) 
{
DateObj = new Date(Year, Month-1, Date);
DateObj.setDate(DateObj.getDate()-1);
DateStr=DateObj.getYear() + "," + (DateObj.getMonth()+1) + "," +
DateObj.getDate();
return DateStr;
}

%>




Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/542 - Release Date: 11/20/2006