Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: arrays
Topic Summary: Checkbox and radiobox array...
Created On: 11-Jul-2008 15:36
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 11-Jul-2008 15:36
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

array bounds exceeded (-1)
Why I'm getting this error?
I tried it also with the checkbox and i'm getting the same error.
Report this to a Moderator Report this to a Moderator
 11-Jul-2008 18:34
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

-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
Report this to a Moderator Report this to a Moderator
Telelogic DOORS » DXL Exchange » arrays

Topic Tools Topic Tools
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.