14.10.2013 Views

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

C-16 <strong>FileMaker</strong> <strong>Pro</strong> User’s <strong>Guide</strong><br />

Status functions<br />

You can use status functions in ScriptMaker scripts to monitor the state<br />

of your database. When creating a calculation using a status function,<br />

choose Status functions from the pop-up menu above the function list,<br />

then double click the status function you want from the function list. For<br />

examples of scripts that use status functions, see “Displaying<br />

customized layouts” on page 5-32 and <strong>FileMaker</strong> <strong>Pro</strong> Help.<br />

Syntax Definition<br />

Status (CurrentAppVersion) Returns the <strong>FileMaker</strong> <strong>Pro</strong> version currently in use<br />

Status (CurrentDate) Returns the current date<br />

Status (CurrentError) Returns a number for the current error value. Use<br />

Status (CurrentError) to check error results when<br />

<strong>FileMaker</strong> <strong>Pro</strong> performs a script. (See “Control<br />

steps” on page 5-5.)<br />

Status (CurrentFieldName) Returns the name of the current field<br />

Status (CurrentFileName) Returns the name of the current file<br />

Status (CurrentFileSize) Returns the size (in bytes) of the current file<br />

Status (CurrentFoundCount) Returns the number of records in the current<br />

found set<br />

Status (CurrentGroup) Returns the group (or groups) that the current user<br />

is a member of, based on the current password<br />

Status (CurrentHostName) Returns the host name <strong>FileMaker</strong> <strong>Pro</strong> registers on<br />

the network<br />

Status (CurrentLanguage) Returns the current language set on the<br />

current system<br />

Status (CurrentLayoutCount) Returns the number of layouts in the database<br />

Status (CurrentLayoutName) Returns the name of the current layout<br />

Status (CurrentLayoutNumber) Returns the number of the current layout<br />

Status (CurrentMessageChoice) Returns a number corresponding to the button<br />

clicked in an alert message displayed using the<br />

Show Message step in a script. Returns 1 for OK, 2<br />

for Cancel, and 3 for the third defined button. (See<br />

“Open Menu Item steps” on page 5-10.)<br />

Status (CurrentMode) Returns a number for the <strong>FileMaker</strong> <strong>Pro</strong> mode in<br />

use when the calculation is performed. Returns 0<br />

for Browse mode, 1 for Find mode, or 2 for<br />

Preview mode.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!