Functions Reference

Table Of Contents
Chapter 7
|
Get functions 109
Description
Returns the number of clients currently accessing the file.
Returns:
1 if FileMaker network sharing is turned off
1 + the number of clients if FileMaker network sharing is turned on
This function does not count clients accessing the database file via ODBC or JDBC.
Notes
If you specify the context for the current calculation, this function will be evaluated
based on that context; otherwise, it will be evaluated based on the context of the
current window.
See FileMaker Pro Help for information about running scripts in client/server and
peer-to-peer environments.
Example
Returns 5 when there are 4 clients accessing the database file.
Get(UserName)
Format
Get(UserName)
Parameter
None
Data type returned
text
Description
Returns the name of the FileMaker Pro user, as specified in the General tab of the
Preferences dialog box. The returned name is user-specified.
Important For greater security, use Get(AccountName) to track and manage user
access: a user cannot change the account name used to log in to a database file.
Note See FileMaker Pro Help for information about running scripts in client/server and
peer-to-peer environments.
Example
Returns Sharon Lloyd when Sharon Lloyd is the current user.