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

Re: [amibroker] Re: Help with ActiveX component



PureBytes Links

Trading Reference Links

Hello,

Message 18288 :



      From:  "wpeters_1" <wpeters_1@xxxxxxxxxxxx>
      Date:  Tue May 28, 2002  8:37 pm
      Subject:  RE: [amibroker] Simulator - coding tip




      Hello,

      Just a little tip if your using VB, when you set a reference to a
'Stock'
      object using the ticker code use a cstr()

      i.e.

      Dim oAB As Object
      Dim oStocks As Object
      dim oStock As Object

      Set oAB = CreateObject("Broker.Application")
      Set oStocks = oAB.Stocks

      Ticker = oAB.ActiveDocument.Name
      Set oStock = oAB.Stocks(CStr(Ticker))
      ...

      Regards,
      William





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003


------------------------ 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/