Get(MultiUserState)

Returns a number representing the level of sharing for the file using FileMaker Network.

Format 

Get ( MultiUserState )

Parameters 

None

Data type returned 

number

Originated in version 

6.0 or earlier

Description 

Returns:

  • 0 when network sharing is off
  • 1 when network sharing is on, you’re accessing the database file from the host computer, and either all users or a specific group of users (based on their privilege set) have network access to the database file
  • 2 when network sharing is on, you’re accessing the database file from a client computer, and either all users or a specific group of users (based on their privilege set) have network access to the database file

Notes 

  • If the current calculation is stored and you specify its context, this function will be evaluated based on that context; otherwise, it will be evaluated based on the context of the current window.

Example 1 

Returns 0 when access is denied to other users.

For an example script, see Set Multi-User script step.