[amibroker] Re: Amibroker.Import OLE ASCII import call

 

fxshrat gave me a jscript example of 

AmiBroker.Import(0, "C:\\Program Files\\AmiBroker\\MyLists\\WatchlistM1.csv", "Watchlist.format")

No luck so far with any of these ruby calls:
#ab.Log(1) # nothing goes into C:\Program Files\AmiBroker\import.log
#ab.Import(0,importFile,formatFile)
#ab.Import(0,'C:\Program Files\AmiBroker\AmiQuote\Download\CN10.aqd','Formats\aqd.format')
#ab.Import(0,'C:\Program Files\AmiBroker\AmiQuote\Download\CN10.aqd','C:\Program Files\AmiBroker\Formats\aqd.format')
#ab.Import(0,'C:\\Program Files\\AmiBroker\\AmiQuote\\Download\\CN10.aqd','Formats\aqd.format')
#ab.Import(0,'C:\\Program Files\\AmiBroker\\AmiQuote\\Download\\CN10.aqd','C:\\Program Files\\AmiBroker\\Formats\\aqd.format')
#AmiBroker.Import(0, "C:\\Program Files\\AmiBroker\\MyLists\\WatchlistM1.csv", "Watchlist.format")
#ab.Import(0, 'C:\\Program Files\\AmiBroker\\AmiQuote\\Download\\CN10.aqd')
#ab.Import(0, "C:\\Program Files\\AmiBroker\\AmiQuote\\Download\\CN10.aqd")
#ab.Import(0, "C:\\Program Files\\AmiBroker\\AmiQuote\\Download\\CN10.aqd", "aqd.format")
ab.Import(0, 'C:\\Program Files\\AmiBroker\\AmiQuote\\Download\\CN10.aqd', 'aqd.format')


Cannot seem to be able to log anything with: 
ab.Log(1)

Manual GUI import succeeds and logs into import.txt with:
Logging started for 'C:\Program Files\AmiBroker\AmiQuote\Download\CN10.aqd' file, using format definition file 'Formats\aqd.format'


__._,_.___

Posted by: mdwin01@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon