Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Config file not working
Message
 
 
À
14/08/2009 18:17:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01418189
Message ID:
01418192
Vues:
56
>>>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
>>
>>From the Help on Configuration files
>>
>>A Visual FoxPro configuration file is a text file in which you can specify values for SET commands, set system variables, and execute commands or call functions.
>>
>>Can you change any other system variables?
>
>Doesn't look like it.
>I tried a couple of other system variables like_ASCIIROWS, _THROTTLE, AND _CLIPTEXT, as well as a SET command CLOCK=ON.

Complete SWAG - and I doubt it would help, but try to change the extension of the config file to fpw.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform