Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows environment variable
Message
From
16/09/2005 11:02:20
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01050243
Message ID:
01050267
Views:
12
Hi martin,

To read the envirionment variables, I much prefer Getenv(), which also is supported by Intellisense.


>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform