![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: arrays Topic Summary: Checkbox and radiobox array... Created On: 11-Jul-2008 15:36 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
array bounds exceeded (-1)
Why I'm getting this error? I tried it also with the checkbox and i'm getting the same error. |
|
![]() |
|
![]() |
|
-1 is what radio boxes and checkboxes return if there is nothing selected -- which I now see you are checking for, but the check is _after_ you use 'i' for an array index.
Just move the line string reason = cbAr to within the fourth "if" clause -- right before or right after string modName = "Deleted Users" would probably work. Then you won't be using i until you've validated it ![]() HTH, Chris |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
arrays
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.