ini file

By Using -ininame parameter

Ex:- "C:\Program Files\Progress\bin\prowin32.exe" -basekey INI -ininame <filename>
 
The below should get you on your way. All the literal strings can be replaced with a character variable or field.
Code:
define variable vcCharacter as character no-undo.
 
/* To load the ini */
load "<ini file name without the .ini>" DIR "<directory>" new BASE-KEY "ini" no-error.
 
/* To use the ini that was just loaded */
use "<ini file name without the .ini>".
 
/* To Get Data from the ini file */
get-key-value "<section name>" key "<key name>" value vcCharacter.
 
/* To write data into the ini file */
put-key-value "<section name>" key "<key name>" value "<some character value>".
 
/* To unload the ini file */
unload "<ini file name without the .ini>" no-error.
Enjoy!
 
Hi TK,
I used same one but it's giving some error message.
Refer attachment
 

Attachments

  • ini.jpeg
    ini.jpeg
    11.4 KB · Views: 24
Back
Top