Changes made to INI file are removed when application.exe closed
search cancel

Changes made to INI file are removed when application.exe closed

book

Article ID: 265724

calendar_today

Updated On:

Products

CA Plex

Issue/Introduction

In CA Plex, we use two (2) "source codes" to write directly in the INI file and system

1.  "Set character INI entry "

2.  "Set INI system value"

Problem is when I close the Application.exe, the option in the INI file is reset

Environment

CA Plex 7.2.x and 7.3.x

Resolution

We recommend using the 'OBWIN/Set INI System Value' source code object API to update the application INI file.

For example, set the API parameter values as follows to update the key Grid Memory Buffer to -1.

    Set Local<My INI Section> = Window options  
    Set Local<My INI Key> = Grid Memory Buffer  
    Set Local<My INI Value> = -1
    Set Local<My INI Index> = 49

To determine the index value for an .INI file option, see the file OBOPT.H in CA Plex’s INCLUDE directory. Options beginning with BOPT are boolean options and options beginning with SOPT are character (string) values.