Highlighted
Absent Member.
Absent Member.
135 views

[archive] Calling text program with switch

[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.
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

RE: [archive] Calling text program with switch

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.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.