pbPreserveEnvironment - cApplication
Determines whether program information is automatically saved and restored
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean pbPreserveEnvironment
| Access Type | Syntax |
|---|---|
| Read Access: | Get pbPreserveEnvironment to BooleanVariable |
| Write Access: | Set pbPreserveEnvironment to BooleanVariable/Value |
Description
The size, location, view-mode, statusbar and toolbar visibility of Views and Programs are automatically written and read from the Registry at runtime. This results in programs and views starting with the same attributes as when the program was last run.
Set the pbPreserveEnvironment property to True to use the Registry to store the settings. Set it to False to prevent the program from automatically accessing the Registry.
Registry Storage
The Registry location where the environment is stored is Computer\HKEY_CURRENT_USER\Software\Data Access Worldwide\DataFlex Applications\
The exact key depends on a combination of psCompany, psProduct, psVersion and psProgram.