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

  • Thread starter Thread starter Hasani
  • Start date Start date
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?
 
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 =/
 
Hi

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

Gary
 
Back
Top