Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 1st, 2007, 09:17 AM
Registered User
 
Join Date: Nov 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Array or Object??

Hi,

A Function in VB.net DLL is returning an Array

Public Function ABC() as Array

End Function

I am accessing this function in Classic ASP page and storing values of Array into variables,
Dim Name
Name = ABC(1)
Dim Phone
Phone = ABC(2)

Problem:
I am getting "Type Mismatch" Error in ASP page while storing the contents of Array into variables. How to solve this?

Do I need change return type of VB.net function or any mistake in ASP page?

 
Old June 3rd, 2007, 06:43 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Why place them into variables? IMO it would be better coding practice to use the array on your page

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing elements of an Array object abdulqadirpk VB How-To 1 April 2nd, 2007 11:13 AM
Binding GridView to an Object Array aldwinenriquez ASP.NET 2.0 Professional 0 September 7th, 2006 04:03 AM
is Array in java are Object? pandian Java Basics 3 March 20th, 2006 11:21 PM
Passing jagged array to com object nutrino VB How-To 0 January 27th, 2006 01:07 PM
Set COM Object Call To Array [email protected] General .NET 0 May 27th, 2004 03:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.