![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
Hi, |
|
![]() |
|
![]() |
|
what about increasing the count variable?
for(z; z < anz; z++)
BR,
Selma
|
|
![]() |
|
![]() |
|
ehh oops I think I should take a brake :-)
of course you are right! what a silly question sorry Mussie |
|
![]() |
|
![]() |
|
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! |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thanks a lot! It took me a while but I had the same idea and it works!!!
best regards, Mussie |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Dialogbox with variable number of textfields
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.