![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: open same Dialog Box several times and passing different arguments Topic Summary: Created On: 29-Oct-2007 17:27 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hello DXLiens,
I have a script which opens a dialog box A when I push the button in DB A a new DB B will be opened. In DB B I can pass an integer and print it out. My goal is to print the integer out and close DB B then open a new DB B and print out another integer. Unfortunately the new DB B doesn't print out the integer I typed in but the default one which is 0!? Why doesn't it print out the integer I typed in? I hope you could understand my problem eventhough I didn't described it very well. Just try out the attached code. thanks and best regards, Mussie |
|
![]() |
|
![]() |
|
So you modify the field and then push the button to print the value. Yes, after modifying it, it still prints zero.
I moved the create of B to inside the newaDB function at the bottom, and it worked. That is, you define B at the top but don't do anything with it until you are ready to do so. I don't know why that worked, but it makes more sense to do define the DB only when you are ready to populate it and display it. - Louie |
|
![]() |
|
![]() |
|
Thanks a lot this realy works.
|
|
![]() |
|
![]() |
|
Forgive ignorance, and I mean that litterally; but I notice with curiosity your declaration of function 'newaDB()' at line 7 (without the body of the function) allowing you to refer to it from function startnewDB, and then at the bottom re-declare newaDB along with the body of the function.
What's that all about? What's the point? The only real use of that is to allow a Recursive set of functions, where perhaps a 2nd-tier function needs to recursively call the main function that called it; but who wants to write that sort of complicated recursive code. - Louie |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.