computerName

computerName(): String;

The computerName method of the Application class returns the name of the device that executes the current method.

The code fragment in the following example shows the use of this method.

// Log the current time and the computer and user names
logFile.open;
logFile.writeLine(app.actualTime.String & " " & app.computerName & " " &
                  app.userName);
logFile.close;

In JADE thin client mode, this method returns a reference to the name of the presentation client workstation.

Use the computerNameAppServer method to return a reference to the name of the application server workstation.

If the method that calls this method has the serverExecution method option, write a method with the clientExecution method option that calls this computerName method if you require the name of the workstation on which the application is running.