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(6)=""
ratings_val(7)="Budget"
ratings_val(8)="Deluxe Self Catering"
ratings_val(9)="Villas & Farmhouses"
toprint = ratings_val(starval_val)
response.write toprint
%>
Thanks and regards.
Ivan Vella
|