what's wrong with UBOUND?

Results 1 to 4 of 4

Thread: what's wrong with UBOUND?

  1. #1
    Join Date
    Dec 1969

    Default what's wrong with UBOUND?

    Hello,<BR><BR>In an ASP page, I used myArray = objrs.GetRows() to put 3 columns of data into an array. When I first call it in a procedure it works, but when I call it the second time in another procedure it doesn&#039;t work.<BR><BR>I simply use like the following<BR><BR>for i = 0 to UBOUND(array,2)<BR> partID = array(0,i)<BR> if partID ... then<BR> ...<BR> end if<BR>next<BR><BR>Should I go to the first row like MoveFirst when it&#039;s second time called? if so how to do that?<BR><BR>Thanks for your help!

  2. #2
    Join Date
    Dec 1969

    Default huh?

    ubound is ubound.<BR><BR>its your code.

  3. #3

    Default GetRows()

    Whe you use GetRows, the RS is emptied, so if you do <BR>"myArray = objrs.GetRows() " twice, the second time will yield nothing.<BR>Same for GetString()<BR><BR>-A

  4. #4
    Join Date
    Dec 1969

    Default Is the variable global?

    If not, that&#039;s your problem on why it doesn&#039;t work in another procedure.

Posting Permissions

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