Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 October 13th, 2003, 03:48 AM
Authorized User
Join Date: Jun 2003
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default Array Problem - Please help

Hi anyone!!

I am receiving the following error when try to load the following array.

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch

Can anyone please help because I can't figure out the problem on my own.

'Show accommodation type as per number
dim starval_val
starval_val = 4

dim ratings_val(9)
ratings_val(0)="Not Rated"
ratings_val(1)="1 Star"
ratings_val(2)="2 Star"
ratings_val(3)="3 Star"
ratings_val(4)="4 Star"
ratings_val(5)="5 Star"
ratings_val(8)="Deluxe Self Catering"
ratings_val(9)="Villas & Farmhouses"

toprint = ratings_val(starval_val)
response.write toprint

Thanks and regards.

Ivan Vella
Old October 13th, 2003, 03:57 AM
Authorized User
Join Date: Sep 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to balakumar1000

There is nothing wrong in the code for loading Array and printng one of its element value. The code worked fine in my IIS. The problem could be some where else.

Balakumar V.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Problem...Can anyone help?? :( Shuchik Classic ASP Basics 1 September 25th, 2007 05:21 AM
Array problem Ivanchan Excel VBA 2 July 24th, 2007 08:28 PM
Array Problem monika.vasvani ASP.NET 1.0 and 1.1 Professional 3 September 13th, 2006 05:56 AM
Array problem NEO1976 Javascript 0 August 3rd, 2006 03:55 AM
Array Problem hayley Classic ASP Basics 4 February 2nd, 2005 12:42 AM

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