PureBytes Links
Trading Reference Links
|
I just figured it out: it seems that if you change the colon to an
equal sign, you can access the property. Thus:
AB = CreateObject("Broker.Application");
Stocks=AB.Stocks();
Stock=Stocks.Item("AKZO.AS");
Groupnr = Stock.GroupID();
works fine. Just so you know, this differs from the description in
the "Changes for version 4.54.0", where the colon is used.
PS
--- In amibroker@xxxxxxxxxxxxxxx, "vlanschot" <ecbu@xxxx> wrote:
> Hello,
>
> In the 4.54 version we can retrieve OLE properties directly. Below
is
> an example whereby I'd like to "lock" the GroupID of the
> stock "AHLN.AS":
>
> AB = CreateObject("Broker.Application");
> Stocks=AB.Stocks();
> Stock=Stocks.Item("AHLN.AS");
>
> "GroupID : " + Stock.GroupID();
>
> Could anybody tell me how I can access this number subsequently? I
> thought GroupID would now be the variable name, but I get an error.
>
> Thanks,
>
> PS
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
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/
|