Skip to main content

[archive] Calling text program with switch

  • April 1, 2008
  • 2 replies
  • 0 views

[Migrated content. Thread originally posted on 31 March 2008]

Migrating from text to graphics.
Creating graphical menu system. When calling a program that has a switch " call programname/n" the program can't be found. ( looks for the program name with slash). When I call using "call program programname/n" the program is found and runs.

Ideally, I would leave the menu system up to call the next program, but "call program" terminates the menu system, and "call" by itself doesn't seem to work with switches.

1. How do I destroy a text screen from within a text program?

2. Is there a way to just "call" with a switch and work?

3. Is there a way to leave the menu program up and active so I can open up multiple called text programs?

Thanks.

2 replies

[Migrated content. Thread originally posted on 31 March 2008]

Migrating from text to graphics.
Creating graphical menu system. When calling a program that has a switch " call programname/n" the program can't be found. ( looks for the program name with slash). When I call using "call program programname/n" the program is found and runs.

Ideally, I would leave the menu system up to call the next program, but "call program" terminates the menu system, and "call" by itself doesn't seem to work with switches.

1. How do I destroy a text screen from within a text program?

2. Is there a way to just "call" with a switch and work?

3. Is there a way to leave the menu program up and active so I can open up multiple called text programs?

Thanks.
1. How do I destroy a text screen from within a text program?
Display a floating window then call the program which display a text screen, if you destroy the floating window it will destroy text screen also
2. Is there a way to just "call" with a switch and work?
If this switch is define in special-names, then you can redefine it as
SWITCH-1 IS SW-1 ON IS SW-1-ON
then set it on by
set sw-1 to on.
before calling program.

3. Is there a way to leave the menu program up and active so I can open up multiple called text programs?

Yes, you need to call the programs in a thread. So that called programs are running independent of your menu.

[Migrated content. Thread originally posted on 31 March 2008]

Migrating from text to graphics.
Creating graphical menu system. When calling a program that has a switch " call programname/n" the program can't be found. ( looks for the program name with slash). When I call using "call program programname/n" the program is found and runs.

Ideally, I would leave the menu system up to call the next program, but "call program" terminates the menu system, and "call" by itself doesn't seem to work with switches.

1. How do I destroy a text screen from within a text program?

2. Is there a way to just "call" with a switch and work?

3. Is there a way to leave the menu program up and active so I can open up multiple called text programs?

Thanks.
1. How do I destroy a text screen from within a text program?
Display a floating window then call the program which display a text screen, if you destroy the floating window it will destroy text screen also
2. Is there a way to just "call" with a switch and work?
If this switch is define in special-names, then you can redefine it as
SWITCH-1 IS SW-1 ON IS SW-1-ON
then set it on by
set sw-1 to on.
before calling program.

3. Is there a way to leave the menu program up and active so I can open up multiple called text programs?

Yes, you need to call the programs in a thread. So that called programs are running independent of your menu.