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

[amibroker] How to send Date to VB Script?



PureBytes Links

Trading Reference Links


Can someone tell me how I can pass the DateTime() from the AFL script
to my VbScript code. I'm current getting a compilation error:
Illegal assignment: 'vbDate' Source: Microsoft VBScript runtime error

This is what I have, it also does not work if I uncomment the other
aflDate line.

EnableScript("vbscript");

aflSymbol = Name();     // String
//aflDate   = DateTime(); // Array
aflDate   = NumToStr(DateTime(), formatDateTime); // String

<%
vbSymbol = AFL.Var("aflSymbol") <-- This compiles fine
vbDate = AFL.Var("aflDate") <-- This does not
%>


Thank you.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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