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: 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
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.
 29-Oct-2007 17:27
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

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
Report this to a Moderator Report this to a Moderator
 29-Oct-2007 18:13
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 29-Oct-2007 18:33
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

Thanks a lot this realy works.
Report this to a Moderator Report this to a Moderator
 29-Oct-2007 23:24
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
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.