UBOUND

Discussion in 'ASP General' started by Eugene Anthony, Nov 19, 2005.

  1. <% 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 ***
    Eugene Anthony, Nov 19, 2005
    #1
    1. Advertising

  2. Eugene Anthony

    Evertjan. Guest

    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)
    Evertjan., Nov 19, 2005
    #2
    1. Advertising

  3. 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 ***
    Eugene Anthony, Nov 19, 2005
    #3
  4. 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"
    Bob Barrows [MVP], Nov 19, 2005
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andi Twine
    Replies:
    3
    Views:
    548
    Natty Gur
    Jan 13, 2004
Loading...

Share This Page