By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,173 Members | 1,049 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,173 IT Pros & Developers. It's quick & easy.

Return 2 dimention array from com

P: n/a
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?
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Show your code for the VB method.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Slim" <Slim@slim> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?

Jul 19 '05 #2

P: n/a

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:Ou**************@TK2MSFTNGP11.phx.gbl...
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



--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Slim" <Slim@slim> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?


Jul 19 '05 #3

P: n/a
Slim wrote:
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...b;EN-US;244012
http://support.microsoft.com/default...b;EN-US;197956

Building COM Components That Take Full Advantage of Visual Basic and
Scripting
http://msdn.microsoft.com/library/te...bscriptcom.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

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.