Get functions
 
Get functions monitor errors in scripts, or capture information about file status or actions being performed.
Many Get functions return information that changes on a regular basis. For example, when the Get(CurrentTime) function is placed in a stored calculation field, the time will update only when a new record is created. If the calculation has other fields in it but the calculation result still returns the current time, the stored calculation result will update only when those other fields have been modified in the current record. If either of these calculations are unstored, the time will update as needed. For performance reasons, making a calculation field unstored is not always the best idea. Get functions are best used in a script where the status information from a Get function is up-to-date at the moment that the calculation is run.
Note  For information on how functions evaluate differently on the host versus the client, search the FileMaker Knowledge Base available at http://help.filemaker.com.
Click a function name for details.
 
The privilege set name being used by the account used to open the file.
The name of the table that contains the field that has the focus.
The number of the portal row that has the focus.
1 (true) if the Allow User Abort script step is on; otherwise, returns 0 (false).
1 (true) if the formatting bar is allowed to be visible; otherwise, returns 0 (false).
1 (true) if the Set Error Capture script step is on; otherwise, returns 0 (false).
1 (true) if high contrast is available and active; otherwise, returns 0 (false).
Text that shows the error state published by ODBC standards, based on ISO/IEF standards.
A number based on record access privileges available through the current layout.
The name of the network protocol (TCP/IP) that FileMaker is using on this machine.
1 (true) if Omit is selected in the current find request; otherwise, returns 0 (false).
1 (true) if animations are enabled for the current script; otherwise, returns 0 (false).
A list of the IP addresses of all computers connected to an active NIC (Network Interface Controller) card.
1 (true) if the text ruler is displayed; otherwise, returns 0 (false).
1 (true) if the touch keyboard is set to display automatically when needed; otherwise, returns 0 (false).
The name of the FileMaker user, as specified in the General tab of the Preferences dialog box.
1 (true) if Use System Formats in the Format menu is on; otherwise, returns 0 (false).
1 (true) if the window is visible; returns 0 (false) if the window is hidden using Hide Window.
Get functions example
This script uses the function Get(CurrentDate) to check each record in the found set to see if an account is past due. If an account is past due, the script shows a message and prompts the user to click a button labeled Ignore, Send Letter, or Send Mail (set up through the Show Custom Dialog script step). The script captures the user's response using Get(LastMessageChoice). Then, based on the user's response, the script performs an action: it cancels the rest of the script, prints a "payment is late" letter, or sends email to the associated account.
 
Go to Layout ["LayoutName"]
Go to Record/Request/Page [First]
Loop
  If [DatabaseName::Date < Get(CurrentDate) - 30]
    Show Custom Dialog ["30 or more days late"]
    If [Get(LastMessageChoice) = 1]
      Halt Script
    Else If [Get(LastMessageChoice) = 2]
      Go to Layout ["Late Notice"]
      Print []
    Else
      Send Mail [To: DatabaseName::Client; Subject: "Late Notice"; Message: "Your account is past due."]
    End If
  End If
  Go to Record/Request/Page [Exit after last, Next]
End Loop
Go to Layout [original layout]
Related topics 
About functions
About formulas
Topics in this section
Get(AccountExtendedPrivileges)
Get(AccountName)
Get(AccountPrivilegeSetName)
Get(ActiveFieldContents)
Get(ActiveFieldName)
Get(ActiveFieldTableName)
Get(ActiveLayoutObjectName)
Get(ActiveModifierKeys)
Get(ActivePortalRowNumber)
Get(ActiveRepetitionNumber)
Get(ActiveSelectionSize)
Get(ActiveSelectionStart)
Get(AllowAbortState)
Get(AllowFormattingBarState)
Get(ApplicationArchitecture)
Get(ApplicationLanguage)
Get(ApplicationVersion)
Get(CalculationRepetitionNumber)
Get(ConnectionAttributes)
Get(ConnectionState)
Get(CurrentDate)
Get(CurrentExtendedPrivileges)
Get(CurrentHostTimestamp)
Get(CurrentPrivilegeSetName)
Get(CurrentTime)
Get(CurrentTimestamp)
Get(CurrentTimeUTCMilliseconds)
Get(CustomMenuSetName)
Get(DesktopPath)
Get(Device)
Get(DocumentsPath)
Get(DocumentsPathListing)
Get(EncryptionState)
Get(ErrorCaptureState)
Get(FileMakerPath)
Get(FileName)
Get(FilePath)
Get(FileSize)
Get(FoundCount)
Get(HighContrastColor)
Get(HighContrastState)
Get(HostApplicationVersion)
Get(HostIPAddress)
Get(HostName)
Get(InstalledFMPlugins)
Get(LastError)
Get(LastMessageChoice)
Get(LastODBCError)
Get(LayoutAccess)
Get(LayoutCount)
Get(LayoutName)
Get(LayoutNumber)
Get(LayoutTableName)
Get(LayoutViewState)
Get(MenubarState)
Get(ModifiedFields)
Get(MultiUserState)
Get(NetworkProtocol)
Get(NetworkType)
Get(PageNumber)
Get(PersistentID)
Get(PreferencesPath)
Get(PrinterName)
Get(QuickFindText)
Get(RecordAccess)
Get(RecordID)
Get(RecordModificationCount)
Get(RecordNumber)
Get(RecordOpenCount)
Get(RecordOpenState)
Get(RequestCount)
Get(RequestOmitState)
Get(ScreenDepth)
Get(ScreenHeight)
Get(ScreenScaleFactor)
Get(ScreenWidth)
Get(ScriptAnimationState)
Get(ScriptName)
Get(ScriptParameter)
Get(ScriptResult)
Get(SortState)
Get(StatusAreaState)
Get(SystemDrive)
Get(SystemIPAddress)
Get(SystemLanguage)
Get(SystemNICAddress)
Get(SystemPlatform)
Get(SystemVersion)
Get(TemporaryPath)
Get(TextRulerVisible)
Get(TotalRecordCount)
Get(TouchKeyboardState)
Get(TriggerCurrentPanel)
Get(TriggerExternalEvent)
Get(TriggerGestureInfo)
Get(TriggerKeystroke)
Get(TriggerModifierKeys)
Get(TriggerTargetPanel)
Get(UserCount)
Get(UserName)
Get(UseSystemFormatsState)
Get(UUID)
Get(WindowContentHeight)
Get(WindowContentWidth)
Get(WindowDesktopHeight)
Get(WindowDesktopWidth)
Get(WindowHeight)
Get(WindowLeft)
Get(WindowMode)
Get(WindowName)
Get(WindowOrientation)
Get(WindowStyle)
Get(WindowTop)
Get(WindowVisible)
Get(WindowWidth)
Get(WindowZoomLevel)