How to change GroupID programmatically?

Hello,

I’m using Matlab to access and run AB.

I did the following

AB = actxserver('Broker.Application')

ostocks=AB.invoke('Stocks')

ticker=ostocks.invoke('Item','IBM')

ticker.invoke('GroupID')

and got the groupID of 4 (which IBM belongs to).

Now I want to move IBM to group 5, I did the following

ticker.invoke('GroupID')=5

and

ticker.invoke('GroupID',5)

but none of this work. Got error messages.

Does anyone know how to change group ID using OLE and/or have a workaround?

I guess using javascript and enter

ticker.GroupID=5

would work, though I have not tried.

But in Matlab you must use invoke function, ticker.GroupID format is not accepted.

Thanks

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.