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

[amibroker] Converting DateNum() to a string...



PureBytes Links

Trading Reference Links

I'm trying to use the number returned by DateNum() in a string 
that'll designate a unique filename for each day, and for some reason 
am unable to use the value returned. Here's a simplified example, 
when trying to set it as a string to title. Does anyone know why this 
wouldn't work? I get a syntax error on this -

EnableScript("vbscript");
dn = DateNum();
<%
 AFL("Title") = CStr(AFL("dn"))
%>

Following does work -

EnableScript("vbscript");
dn = 9999999;
<%
 AFL("Title") = CStr(AFL("dn"))
%>

What's the difference in assigning a constant vs a value returned by 
DateNum to variable dn? FWIW, I tried ABTool's xxToString() function 
as well. Similar problem...

TIA,

Jitu



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/