Return 2 dimention array from com

S

Slim

I am trying to return a 2 dimensional array from a VB component, with no
luck

I get the array, it has the right Ubound for the first dimension, but 0 for
the second.

it works find when called from VB but fails when called from ASP

Can this be done?
 
S

Slim

Mark Schupp said:
Show your code for the VB method.


I dont have it any more.

but it worked in caled from a VB program, so i asume I had it right.

I made it return a varient so it can be used in ASP, I was able to detect
that the result was a array, i was able to detect that it it had a first
dimention uBound of 3, but the second dimension was empty.

I guess what I want to know is it possible?

if it is I will try again
 
B

Bob Barrows [MVP]

Slim said:
I am trying to return a 2 dimensional array from a VB component, with
no luck

I get the array, it has the right Ubound for the first dimension, but
0 for the second.

it works find when called from VB but fails when called from ASP

Can this be done?

I don't remember which one, but at least one of these articles contains your
answer:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;244012
http://support.microsoft.com/default.aspx?scid=kb;EN-US;197956

Building COM Components That Take Full Advantage of Visual Basic and
Scripting
http://msdn.microsoft.com/library/techart/msdn_vbscriptcom.htm

Q218454 - HOWTO: Implement Array Arguments in Visual C++ COM Objects for
Active Server Pages
http://support.microsoft.com/default.aspx?kbid=218454

Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top