User manual

Table Of Contents
Using formulas and functions
11-11
If you use status functions in defined calculation fields, the
calculation results must be unstored. Otherwise, the calculation does
not update when the status changes. See chapter 5, “About storage
and indexing options.” The functions below appear in the list of
functions in the Specify Calculation dialog box when you choose
View status functions or View all by type. When you view all functions
by name, you see Status (status flag), which is a temporary
placeholder.
Syntax Definition
Status (CurrentAppVersion) Returns the FileMaker Pro version currently
in use.
Status (CurrentDate) Returns the current date.
Status (CurrentError) Returns a number for the current error value.
Use Status (CurrentError) to check error
results when FileMaker Pro performs a
script. For a list of error numbers, choose
Help menu > Contents and Index, click the
Index tab, and type error messages.
Status (CurrentFieldName) Returns the name of the current field.
Status (CurrentFileName) Returns the name of the current file.
Status (CurrentFileSize) Returns the size (in bytes) of the current file.
Status (CurrentFoundCount) Returns the number of records in the current
found set.
Status (CurrentGroups) Returns the group (or groups) that the current
user is a member of, based on the current
password.
Status (CurrentHostName) Returns the host name FileMaker Pro
registers on the network.
Status (CurrentLanguage) Returns the language currently set on the
current operating system.
Status (CurrentLayoutCount) Returns the number of layouts in the
database.
Status (CurrentLayoutName) Returns the name of the current layout.
Status (CurrentLayoutNumber) Returns the number of the current layout
according to the order specified in Set Layout
Order. See “Working with, duplicating,
deleting, or renaming layouts” on page 6-8
Status (CurrentMessageChoice) Returns a number corresponding to the
button clicked in an alert message displayed
using the Show Message step in a script.
Returns 1 for OK, 2 for Cancel, and 3 for the
third defined button. See “Miscellaneous
script steps” on page 10-9
Status (CurrentMode) Returns a number representing the mode
FileMaker Pro is in when the function is
evaluated. Returns 0 for Browse mode, 1 for
Find mode, 2 for Preview mode, or 3 if
printing is in progress.
Status (CurrentModifierKeys) Returns a number representing which
keyboard modifier keys (for example, Shift)
are being pressed by the user. For more
information, see FileMaker Pro Help.
Status (CurrentMultiUserStatus) Returns 0 for a single user file, 1 for a
multiuser file if the computer is the host, or 2
for a multiuser file if the computer is a guest.
Status (CurrentNetworkChoice) Returns the name of the network protocol.
Status (CurrentPageNumber) Returns the page number currently printing
or being previewed. When no page is
printing or being previewed, returns 0.
Status (CurrentPlatform) Returns a number for the platform currently
in use. Returns 1 for Mac OS, 2 for Windows
95/98, or -2 for Windows NT.
Status (CurrentPortalRow) Returns the number of the currently selected
row in a portal. When no portal is selected,
returns 0.
Syntax Definition