General information
Title:
Config file not working
Hello,
I'm trying to use a config file to change the default value of the system variable _ASCIICOLS in a shipping .exe file.
I created a file with this in it:
_ASCIICOLS = 200
I invoke the app like this:
myapp.exe -cmyconfigfile.txt
The config file is in the same folder as the executable.
There is no config.fpw file.
Using Filemon, I see that myconfigfile.txt is being opened and read when I start my app.
However, if look at the value of _ASCIICOLS in my app, the value is always the default value, which is 80.
MESSAGEBOX("INTERNAL: " + SYS(2019, 1)) && This shows my file.
MESSAGEBOX("EXTERNAL: " + SYS(2019, 2)) && This shows nothing.
MESSAGEBOX("_ASCIICOLS = " + ALLTRIM(STR(_ASCIICOLS))) && This shows 80.
Can I do this?
Thanks,
Howard
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only