Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows environment variable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01050243
Message ID:
01050259
Vues:
24
This message has been marked as the solution to the initial question of the thread.
Hi Alessio,
DECLARE INTEGER SetEnvironmentVariable  IN kernel32.dll STRING @, STRING @
DECLARE INTEGER GetEnvironmentVariable  IN kernel32.dll STRING @, STRING @, INTEGER

=SetEnvironmentVariable(("LoaderState"+CHR(0)),("0"))

* Get environment
lcPom=space(254)
lii=GetEnvironmentVariable(("LoaderState"+CHR(0)),@lcPom, LEN(lcPom))
?LEFT(lcPom,lii)
MartinJ

>I need to change the setting of a windows environment variable programmatically.
>Is It Possible ?
>
>Thanks
>Alessio
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform