Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows environment variable
Message
 
To
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:
01050328
Views:
11
Hi T(h)ore,

Each way go to Roma. :-)

MartinJ

>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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform