Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows environment variable
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01050243
Message ID:
01050259
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform