@ServerName (Formula Language)
Returns the name of the server containing the current database. When the database is local, returns the user name.
Note: This @function is new with Release 6.
Syntax
@ServerName
Return value
serverName
Text. The name of the server containing the current database or the user name if triggered from a local database.
Examples
- This formula, when added to a hotspot button on a form running
on the acme/central server, displays a Server name message box that
reads "CN=acme/O=central. "
@Prompt([OK]; "Server name"; @ServerName)
- This formula, when added to an action button on a form running
on the acme/central server, displays a Server name message box that
reads "acme."
@Prompt([OK]; "Server name"; @Name([CN]; @ServerName))
- When this code is added to a client toolbar button it displays
"CN=Mary Anne Admin/O=central" if the button is triggered by Mary
Anne while she is working with a form from a local database.
@Prompt([OK]; "Server name"; @ServerName)