Resolve Method

Resolves a host name to a host IP address.

Syntax

object.Resolve( HostName, IpAddress, Reserved )

Remarks

The Resolve method is used to convert a host name into an IP address. Note that unlike the Query method, this method will use the local host file when resolving the host name.

The HostName argument specifies the name to resolve.

The IpAddress argument is a variable that will contain the IP address for the specified host name when the method returns. The address will be a string in dotted notation.

The Reserved argument is ignored and should be omitted or passed as an empty variant. This argument is reserved for future use in the control.

Return Value

A value of zero is returned if the host name could be resolved into an IP address. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

See Also

HostAddress Property, HostFile Property, HostName Property, Query Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.