![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Dialog Box Problems Topic Summary: Created On: 12-Nov-2004 19:31 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Dialog Box Problems
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.