Environ

ddrew

seasoned user
Local time
Today, 12:18
Joined
Jan 26, 2003
Messages
911
I was given this piece of code the other day by somebody on the forum and it works really well. My question is:

Is there a way, using a similar function that I can retrive the IP address?

Environ("ComputerName")
 
try in a module

sub showenviron
dim x as integer
 
sorry hit tab

try in a module

sub showenviron
dim x as integer

for x=1 to 50 '33 i think
msgbox("Environ " & x & " " & environ(x))
next x

end sub

put cursor at start of sub and click debug run. you can smarten this up, but this will show you all environ values.
 
This is a great way to cycle through the Environ("") options available. Is there a way to get this type of result using API calls?
 

Users who are viewing this thread

Back
Top Bottom