Login | |
|
 |
RE: subscript out of range 'groups' - 12/6/2005 1:51:52 AM
|
|
 |
|
| |
csamuels
Posts: 42
Score: 0
Joined: 9/26/2005
Status: offline
|
groups = rs.getrows 'for each i in groups ' response.write groups(0,i) & "<BR>" 'next rs.movefirst response.write rs.getstring & "<BR>" response.write LBound(groups) & " - " & UBound(groups) & "<BR>" for i = LBound(groups) to UBound(groups) response.write groups(0,i) & "<BR>" next produces -1 205 217 221 225 227 231 233 235 237 239 241 243 245 247 249 251 253 263 271 275 277 279 283 285 287 289 291 293 295 297 299 301 303 305 307 309 311 313 315 317 319 321 323 325 327 329 331 333 335 337 339 341 345 347 349 351 353 355 357 359 361 363 365 367 369 371 373 375 377 379 381 387 389 391 395 397 399 401 403 405 407 409 411 413 415 419 421 423 425 427 436 440 442 444 446 448 450 452 454 456 460 480 482 484 486 488 490 492 494 496 498 500 502 504 506 508 510 512 514 516 518 520 522 524 526 528 530 532 534 536 538 540 544 548 556 558 564 568 574 580 582 584 586 588 590 592 594 596 598 600 602 604 606 610 612 614 618 620 622 624 626 634 636 640 644 646 654 656 658 660 664 666 668 672 0 - 0 -1
|
|
| |
|
|
|
 |
RE: subscript out of range 'groups' - 12/6/2005 3:19:37 AM
|
|
 |
|
| |
csamuels
Posts: 42
Score: 0
Joined: 9/26/2005
Status: offline
|
groups = rs.getrows rs.movefirst for each i in groups response.write i & "<BR>" next works now, thx close
|
|
| |
|
|
|
 |
RE: subscript out of range 'groups' - 9/7/2006 8:05:59 PM
|
|
 |
|
| |
Tomislav
Posts: 1
Score: 0
Joined: 9/7/2006
Status: offline
|
Hi, im getting this error Microsoft VBScript runtime error '800a0009' Subscript out of range: 'orderTotal' /index.asp, line 318 -- From line 307 </tr> </table> </td> </tr> <tr> <td align="left" class="manjitekst"> <% FOR x = 0 TO UBOUND( localCart, 2 ) IF localCart( CARTPID, x ) <> "" THEN orderTotal=orderTotal + ( localCart( CARTPPRICE, x ) * localCart( CARTPQUANTITY, x ) ) chId=(localCart( CARTPID, x) ) chProduct=Server.HTMLEncode( localCart( CARTPNAME, x ) ) chPrice=localCart( CARTPPRICE, x ) chQuantity=localCart( CARTPQUANTITY, x )%> <%=chProduct%>-<b><%=chPrice&" kn" %></b>(<%=chQuantity%> kom)<br> <% END IF NEXT %> --
|
|
| |
|
|
|
|
|