Functions Flashcards
Get ( Device )
Returns a number indicating the type of computer that is currently running FileMaker Pro or FileMaker WebDirect, or the type of iOS device that is currently running FileMaker Go
- 0 - unknown
- 1 - Mac
- 2 - PC running Windows
- 3 - iPad
- 4 - iPhone or iPod touch
Get ( EncryptionState )
Returns a value representing the file’s current encryption state
- 0 if the database is not encrypted
- 1 and the Shared ID as a return delimited list if the database is encrypted
Get ( FileSize )
Returns the size (in bytes) of the currently active database file
Get ( LastError )
Returns a number representing the error, if any, in the execution of the most recently executed script step
Get ( LastMessageChoice )
Returns a number corresponding to the button clicked in an alert message that is displayed by the Show Custom Dialog script step
- 1 for the first button ( by default, labeled OK )
- 2 for the second button ( by default, labeled Cancel )
- 3 for the third button
Get ( LayoutAccess )
Returns a number based on record access privileges available thorugh the current layout.
- 0 if the custom layout privileges of an account’s privilege set allow no access to Records via this layout
- 1 if the custom layout privileges of an account’s privilege set allow view only access to Records via this layout. If the database is oopened with read-only access, FM Pro returns 1 even if the layout had read-write access privileges
- 2 if the custom layout privileges of an account’s privilege set allow modifiable access to Records via this layout.
Get ( LayoutName )
Returns the name of the layout currently displayed.
Get ( LayoutNumber )
Returns the number of the layout currently displayed, according to the list in the Manage Layouts dialog box.
Get ( LayoutViewState )
Returns a number indicating the currently active database file view
- 0 if the database file is in Form View
- 1 if the database file is in List View
- 2 if the database file is in Table View
Get ( MultiUserState )
Returns a number representing the level of sharing for the database file useing FileMaker Network
- 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
Get ( NetworkType )
In FileMaker Go, returns a number indicating the type of network being used to access the current file.
- 0 if the current file is a local file on an iOS device
- 1 if the network type is unkown
- 2 for a cellular network
- 3 for a Wi-Fi network
Get ( RecordAccess )
Returns a number based on the current record’s access privileges, assigned through the Custom Record Privileges dialog box.
- 0 if the custom record privileges of an account’s privilege set have neither View nor Edit privileges set to yes for the current record
- 1 if the custom record privileges of an account’s privilege set have View set to yes for the current record, or if View is set to limited and the calculation defined for limited access return a value of true
- 2 if the custom record privileges of an account’s privilege set have Edit set to yes for the current record, or if Edit is set to limited and the calculation defined for limited access returns a value of true
Get ( ScriptAnimationState )
Indicates wheter or not animations are enabled for the current script.
- 0 if animations are disabled for the current script
- 1 if animations are enabled for the current script
Animations are off by default while a script is running
Get ( ScriptName )
Returns the name of the script currently running (or paused)
Get ( ScriptParameter )
Returns the script parameter passed into the current script
Get ( ScriptResult )
Returns the script result from a performed subscript
Use this function as part of a calculation evaluated within a script. If a subscript doesn’t return a result, then the content of the script result will be empty
Get ( SortState )
Returns a value representing the current sort state.
- 0 if the records in the active table are not sorted
- 1 if the records in the active table are sorted
- 2 if the records in the acitve table are partially sorted (semi-sorted)
Get ( StatusAreaState )
Returns a number indicating the current status toolbar state
- 0 if the status toolbar is hidden
- 1 if the status toolbar is visible
- 2 if the status toolbar is visible and locked
- 3 if the status toolbar is hidden and locked
Get ( SystemDrive )
Returns the drive letter (Windows) or volume name (OS X) where the currently running operating system is located.
Get ( SystemPlatform )
Returns a number indicating the current platform
- 1 if the current platform is Intel-based Macs
- -2 if the platform is Windows
- 3 if the platfrom is iOS
- 4 if the platfrom is FileMaker WebDirect
Get ( SystemVersion )
Returns the version of the current operating system
- 6.1 for Windows 7
- 6.2 for Windows 8
- 10.7 for OS X version 10.7
- 10.8 for OS X version 10.8
- <os><web><browser> for FileMaker WebDirect</browser></web></os>
Get ( TriggerCurrentPanel )
Returns the index and the object name of the current tab panel or slide panel (the panel to be switched from) when the OnPanelSwitch script trigger is activated.
Get ( TriggerGetureInfo )
In FileMaker Go, returns details about the gesture that activated an OnGestureTap trigger
Returns a list containing these items:
- the string tap, indicating the script was started by an OnGestureTap trigger
- a value indicating the tap count
- a value indicating how many fingers were used to make the tap
- the x coordinate in the document where the gesture occurred
- the y coordinate in the document where the gesture occurred
Get ( TriggerKeystroke )
Returns a string containing the characters that activated an OnObjectKeystroke or OnLayoutKeystroke script trigger.