[Stackoverflow] [Progress OpenEdge ABL] How to import settings/variables from a .ini file into a procedure?

Status
Not open for further replies.
G

Goodie

Guest
I'm trying to make it so that properties are easily adjustable using a .ini file.

The problem currently is that currently these properties are defined using the "&global-define". With this the properties are not easily adjustable.

I want to put all of these variables inside of a settings file, and import that settings file inside of the procedure. I was thinking about using a settings.ini file for this.

I hope I can further clarify what I'm trying to achieve down below.

settings.ini

Code:
port = 19995

procedure.p

Code:
import settings.ini .
define variable iPort as integer no-undo .
iPort = port .

Let me know if more explanation is needed.

Thanks in advance

I looked for a solution on the internet but was unable to find one.

Continue reading...
 
Status
Not open for further replies.
Back
Top