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: Dialogbox with variable number of textfields
Topic Summary:
Created On: 27-Sep-2006 15:44
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.
 27-Sep-2006 15:44
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

Hi,
is there a possibility to get a Dialogbox with a certain number (anz) of textfields in it!
The execution of my code halted with an timeout!
best regards,
Mussie

Report this to a Moderator Report this to a Moderator
 27-Sep-2006 15:54
User is offline View Users Profile Print this message


Selma Cankaya

Posts: 5
Joined: 30-Mar-2005

what about increasing the count variable? for(z; z < anz; z++) BR, Selma
Report this to a Moderator Report this to a Moderator
 27-Sep-2006 16:16
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

ehh oops I think I should take a brake :-)
of course you are right!
what a silly question
sorry

Mussie
Report this to a Moderator Report this to a Moderator
 28-Sep-2006 10:51
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

Ahh still got a problem with that code(see top)!
All the fields I get are called stringIn, so if I want to get a string out of one of those textfields I always get the last one posted because for dxl it's the same field!
Report this to a Moderator Report this to a Moderator
 28-Sep-2006 12:30
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

This is how I would do it.

Declare an array of DBEs and use integer constants to reference each DBE in the array.

-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 28-Sep-2006 at 12:31 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 28-Sep-2006 16:05
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

Thanks a lot! It took me a while but I had the same idea and it works!!!

best regards,
Mussie
Report this to a Moderator Report this to a Moderator
 28-Sep-2006 20:53
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Notice that variables declared inside a function are not available in the main? That's desirable.

Your declared DBE 'stringIn' is defined withing a narrow context, the "for(z:..." context composed of only 3 lines. Variables are not available outside the context in which they were defined.

Yes, your loop should look like this: for (z=0; z<anz; z++)

As for Tony's post:

Silly nit-pick: when you are declaring all the elements in a list its better to do it this way:
string List[] = {"0", "1", "2"}
int ListSize = sizeOf(List)

That's better than declaring ListSize = 3 first, as it lets you adjust the list without having to remember to change its size

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.