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

Re: [amibroker] Windows Automation: how to call AFL function fromJS?



PureBytes Links

Trading Reference Links

hello Tomasz,

Tomasz Janeczko wrote:
> In short - you can't.
> 
> Scripting is old stuff - it was good when there was no looping and no used-defined functions
> in AFL, but now you should rather try to write everything in AFL since
> now it provides almost the same constucts as JScript, but simply works many times faster.

thanks for explanation. as you probably noticed I wanted to create 
variable which name would be parametrized. I wanted to use simple JS 
mechanism of joining strings and numbers together into another string. 
so for example if str="blabla" and intP=7 script would create variable 
named blabla7 directly accessible from AFL.
I would like to use this mechanism in function that returns a "family" 
of evaluated variables which names are based on provided name as 
parameter plus added prefixes/postfixes.

is it doable straightforward in AFL in current stage of development of 
this language?

regards,
BM

------------------------ 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/mOAaAA/3exGAA/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/