Database.Host

From Xojo Documentation

Property (As String )
aDatabase.Host = newStringValue
or
StringValue = aDatabase.Host

Supported for all project types and targets.

The database host name or IP address of the database server.

Sample Code

This examples connects to a PostgreSQL database called "BaseballLeague":

Dim db As New PostgreSQLDatabase
db.Host = "192.168.1.172"
db.Port = 5432
db.DatabaseName = "BaseballLeague"
db.UserName = "broberts"
db.Password = "streborb"
If db.Connect Then
// Use the database
Else
// DB Connection error
MsgBox(db.ErrorMessage)
End If