UBOUND

E

Eugene Anthony

<% 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
 
E

Evertjan.

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
 
E

Eugene Anthony

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
 
B

Bob Barrows [MVP]

Eugene said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top