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: Dialog Box Problems
Topic Summary:
Created On: 12-Nov-2004 19:31
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.
Answer This question was answered by Louie Landale, on Monday, November 22, 2004 4:10 PM

Answer:
Yes. I structure my code like this:
// Start Script
Context Checks
Global Variables/constants
DB the Dialog Box
DBE all Dialog Elements
Various Functions()
apply and button declarations()
create DialogBox; populate with Dialog Elements
realize
show
// end script.

The declarations come before the functions, but the definition of the Dialog comes last. Thus, the various functions and apply and buttons have access to the DB and DBE declarations.

- Louie
 12-Nov-2004 19:31
User is offline View Users Profile Print this message


John Mazzie

Posts: 7
Joined: 7-Jul-2004

I've attached parts of code to show what I am trying to do. The dialog box has 4 list elements and after apply is pushed, the function main is called. In main I try to get the selected string from each list, but I get a run-time error that says, "unassigned variable (STDModDBList)".

Is there any way for the main function to recognize the elements in the dialog box that is passed to it so that I can grab those strings?

Thanks,

John Mazzie
Report this to a Moderator Report this to a Moderator
 15-Nov-2004 12:47
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Looks like the list view declarations are out of scope. Have you declared the DBE lists before main() in the script?

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 15-Nov-2004 20:47
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
Yes. I structure my code like this:
// Start Script
Context Checks
Global Variables/constants
DB the Dialog Box
DBE all Dialog Elements
Various Functions()
apply and button declarations()
create DialogBox; populate with Dialog Elements
realize
show
// end script.

The declarations come before the functions, but the definition of the Dialog comes last. Thus, the various functions and apply and buttons have access to the DB and DBE declarations.

- Louie
Report this to a Moderator Report this to a Moderator
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.