Managing multiple environments
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Managing multiple environments
If you are writing an application builder, you might want to maintain separate environments for each application.
To separate application environments:
- Select an existing application or create a new one.
-
Load the existing application environment, or create
and load a new one using the
LOADstatement. -
Execute the
USEstatement to make the selected application environment current. -
If the application exists, run it according
to user input. If the application is new, do the following:
-
Allocate the number of available color and
font table entries for the new application by setting the
NUM–ENTRIESattribute of theCOLOR–TABLEandFONT–TABLEhandles. -
Set internal colors and fonts from user input using the
SYSTEM–DIALOG COLORandFONTstatements, or set internal colors using theCOLOR–TABLEhandle. - Create application widgets and code from user input using the current color and font definitions.
-
Allocate the number of available color and
font table entries for the new application by setting the
- Test and revise application resources and widgets according to user input.
- Repeat Steps 1 through 5 for as many applications as you need to work on simultaneously.
-
When the application terminates, do the following:
-
Save the color and font table entries to the
current environment using the
PUT–KEY–VALUEstatement with theCOLORandFONToptions. - Save the application code to procedure files.
-
Delete all widgets for the application from ABL memory
using the
DELETE WIDGETstatement. -
Remove the current application environment from ABL
memory using the
UNLOADstatement.
-
Save the color and font table entries to the
current environment using the
-
Execute the
USEstatement according to user input to set a new current environment, then repeat Steps 4 through 8 until all work is done.