Get(HostName)

Category: Get

Syntax: Get ( HostName )

Parameters: None

Data type returned: Text

Description:

Returns the registered name of the computer hosting the database file.

To change the registered name on a computer:

On Windows, the computer name is found on the Network Identification tab of the System Properties control panel. The Full Computer Name option displays the current registered name.

On Mac OS, the computer name is found within System Preferences, under the Sharing settings.

If a client connects to a file hosted by FileMaker Server, Get (HostName) returns the name of the server. The host name can be configured with the Server Administration tool. By default, FileMaker Server uses the system's name, but a custom name can be supplied instead.

We find it helpful in our practice to place a Get(HostName) display on a prominent layout within our solutions so that we can see during development whether or not we're working on a live version, a development version, or a scratch file on our local laptops.

Examples:

If the computer is named "Maturin"

Get(HostName)

results in Maturin.

Категории