Return an array from a VB COM object in classic ASP

Tumaudimbiz

New Member
I am pretty new with VB so this might be a simple question, but I've struggled for a couple of days now.I have created a VB COM object that I am using in my ASP page and I have figured out how I can return individual values from a function, but I would also like to be able to return a list of values, such as order lines.I have a sample that I have been looking at where the values are retrieved in the following manner in the ASP page.\[code\] Set OrderData = http://stackoverflow.com/questions/15657301/Server.CreateObject("OrderObj.OrderObject") Set Orders = OrderData.LstHeaders 'List all order rows for a specific Customer rows = Orders.LstRows(CustomerNo) For n = 1 to rows 'Write a record for each row Response.write Orders.Lines.line(n).item("Item") Response.write Orders.Lines.line(n).item("Qty") Next \[/code\]However, I do not have the code from the COM object that was used and I am just trying to figure outhow the code would look like to achieve this same functionality?I tried to create a Public Array the COM object to access via myServer.array(i), but that did not seem to work.I don't expect anyone to write the entire code for me, I just need some hints on how the general structure of the COM object code should look like to be able to call it like above.Any ideas or solutions to this would be much appreciated. I have ordered a VB.NET reference manual, but it won't arrive until 2 more weeks and I just can't get any sleep until I worked this out.
 
Top