In (2008 or 2005), how can I ping a website (like for example and store the website's IP address to a string?

There is a complete sample available for download in the help file and also a detailed example of working with the ping class. Just type in "Ping" in the help files index