UBOUND error..

Results 1 to 2 of 2

Thread: UBOUND error..

  1. #1
    Join Date
    Dec 1969

    Default UBOUND error..

    I need help regarding the usage of UBOUND. My coding is <BR>For i =0 to UBOUND(appusertemp)-1<BR> If TRIM(appusertemp(i)) = appuser then<BR> Else<BR> Redim Preserve appusertem(j+1)<BR> appusertem(j)= appusertemp(i)<BR> j = j + 1<BR> End If<BR> Next<BR>but it return an error : Microsoft VBScript runtime (0x800A000D)<BR>Type mismatch: &#039;UBOUND&#039;<BR>what&#039;s wrong??do i need to include anything??please help..

  2. #2
    Join Date
    Dec 1969

    Default Try...

    &#060;%<BR>Response.Write IsArray(appusertemp)<BR>Response.End<BR>%&#062;<BR ><BR>If the word "True" appears on your screen, I don&#039;t know what&#039;s up. If the word "False" appears, you haven&#039;t declared/populated that array properly.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts