Try OpenEdge Now
skip to main content
Programming Interfaces
Input/Output Processes : Colors and Fonts : Managing application environments : Managing multiple environments : Helpful hints for environment management
 
Helpful hints for environment management
Many variations in the typical scenario are possible, but this is a summary of important tasks to consider in any application that uses multiple environments:
*Before defining colors and fonts for immediate use at runtime, set or adjust the size of the current color and font tables as required using the NUM–ENTRIES attribute of the COLOR–TABLE and FONT–TABLE handles.
*Use the PUT–KEY–VALUE statement with the COLOR and FONT options to save newly created and newly modified color and font definitions from the current color and font tables to the current environment.
*Always set a current environment with the USE statement before or after executing the UNLOAD statement for the current environment, even if the current environment you set is the default environment. Otherwise, the AVM returns an error when you attempt to display or enable a widget.