I want to use an OLE Automation Interface called XXX developped by a
third party and have the following declarations:
Public oAB As XXX.Application 'Amibroker Apllication
oAB = CreateObject("XXX.Application")
Dim oStocks As Broker.Stocks
Dim oStock As Broker.Stock
Dim iStockQty As Short
iStockQty = oStocks.Count
The last line give me a NullReferenceException error
I have tried to use NEW after As but still obtain the same error.
What is the correct syntax ?
Thanks
Bernard