I have the following VB code :
Set QuoteRequest = Quotes.Add
With QuoteRequest
.No = 1
.QuoteCode(0)="101"
.Code(0)="NAME1"
.Code(1)="NAME2"
End With
I use JACOB to access that COM object.
quoteRequest.setProperty("No",1);
quoteRequest.setProperty("QuoteCode(0)","101");
quoteRequest.setProperty("Code(0)", "NAME1");
quoteRequest.setProperty("Code(1)", "NAME2");
But this leads to exception
com.jacob.com.ComFailException: Can't map to dispid: QuoteCode(0)
How can I pass that property?