Is it possible to use/call/access my .net libraries from ASP [NOT ASP.NET!!!]

H

Hasani

Well, I'm having problems returning arrays to COM
e.x.:

public string[] TestC()
{
string[] array = new string[] {"FOO", "BAR", "1", "ONE"};
return array;
}

public int[] TestD()
{
int[] array = new int[] {1,2,3,4};
return array;
}

In VBScript, I invoke TestC and TestD on my objects using

dim teh
teh = foobar.TestD
dim teh1
teh1 = foobar.TestC

I use IsArray() function and it returns true indicating that both teh and
teh1 are arrays if type CLng and CStr. Using UBound(..) returns the correct
array lengths.

How do I traverse or access elements of the array.
How do I view the contents of the first few indexes of the array?
 
H

Hasani

WHats weird is, I think, inorder to successfully return arrays, they return
signature must be object[]
e.x.:
int[] Foo()
string[] Bar()
doesn't work called fromVBScript
but

object[] FooBar()

works =/
 
G

Gary van der Merwe

Hi

What are your reasons for not using ASP.NET. Is it because you do not like
the methodolgy or for compatability reasons.

Gary
 

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

Top