API Support Forum
OEC API > API Support > COM API: Ticks.BidPrices() doesn't work
Author Topic: COM API: Ticks.BidPrices() doesn't work
(4 messages, Page 1 of 1)
Moderators: VPfau
CChen15
Posts: 121
Joined: Jul 23, 2009


Posted: Dec 10, 2012 @ 10:58 PM             Msg. 1 of 4
I can't get values by .BidPrices(0) (and other similar like Ask, Prices, Volumes, Timastamps) with error:
Quote: Microsoft Visual Basic
Compile error:
Wrong number of arguments or invalid property assignment

I obligated to use .BidPriceList.Item(0) instead. However I see .BidPrices(0) value in Watches window:
http://img84.imageshack.us/img84/3562/1211033342.png

WinXP SP3, Office 2003 SP3, OEC COMAPI 3.5

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Chen Hua, Russia
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Dec 11, 2012 @ 08:37 AM             Msg. 2 of 4
Looks like your version of VB doesn't support SAFEARRAY values

Victor Vins
Lead Software Developer
CChen15
Posts: 121
Joined: Jul 23, 2009


Posted: Dec 12, 2012 @ 09:33 AM             Msg. 3 of 4
I mean not a VB, but the VBA under Access. Is your pov right for VBA too? I see in About: "VBA: Retail 6.5.1024"

However it's strange. I read that all arrays in VB are SAFEARRAY...

Have you some recomendations?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Chen Hua, Russia
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Dec 12, 2012 @ 09:45 AM             Msg. 4 of 4
You can continue use BidPriceList: its content is the same as BidPrices

Victor Vins
Lead Software Developer