For Programmers: Free Programming Magazines  


Home > Archive > ASP > November 2005 > UBOUND









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author UBOUND
Eugene Anthony

2005-11-19, 7:55 am

<% if UBOUND(Arr) > 0 then%>

<% end if %>

I am getting the following error:

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

How do I solve the problem. Your help is kindly appreciated.


Eugene Anthony



*** Sent via Developersdex http://www.developersdex.com ***
Evertjan.

2005-11-19, 7:55 am

Eugene Anthony wrote on 19 nov 2005 in
microsoft.public.inetserver.asp.general:

> <% if UBOUND(Arr) > 0 then%>
>
> <% end if %>
>
> I am getting the following error:
>
> Error Type:
> Microsoft VBScript runtime (0x800A000D)
> Type mismatch: 'UBOUND'
>
> How do I solve the problem. Your help is kindly appreciated.


make arr an array


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Eugene Anthony

2005-11-19, 6:55 pm

Yes I declared it as:

Dim Arr(1)

and only when nothing is stored in Arr and when I use UBOUND(Arr) im
getting the error.

Eugene Anthony

*** Sent via Developersdex http://www.developersdex.com ***
Bob Barrows [MVP]

2005-11-19, 6:55 pm

Eugene Anthony wrote:
> Yes I declared it as:
>
> Dim Arr(1)
>
> and only when nothing is stored in Arr and when I use UBOUND(Arr) im
> getting the error.
>


Make sure it is an array before you use ubound:
if isarray(arr) then
if ubound(arr) > 0 then

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com