Switch to: V11V10V9V8V7V6V5

VConnection Class: Properties

VConnection.IsConnected()

Declaration:

IsConnected as Boolean (r/o)

Description:

Returns TRUE if the connection is available, this method can send a ping-package to the server to check this.

Example:

res = connection.IsConnected

VConnection.HostName

Declaration:

HostName as String (r/o)

Description:

Returns a string that contains the name of the Valentina Server host to which this VConnection is connected.

Example:

hName = connection.HostName	

VConnection.Port

Declaration:

Port as Integer  (r/o)

Description:

Returns the port number of the server host to which this connection is connected to.

Example:

port = connection.Port

VConnection.UserName

Declaration:

UserName as String (r/o)

Description:

Returns user name of this connection.

Note: this is the same name that was used on creation of this Connection.

Example:

userName = connection.UserName