Mac OS X, Windows
FMP 8.5, 9, 10, 11
File Type: FP7
FileSize: ~ .09 megabytes
Provides a single field that can be used to concisely show the current record number, found count, record total and sort status. Best used as merge formatted field.
// Name: cfRecordsStatus
// Parameters: RecordNum ; RecordFndCt ; RecordNumTotal ; RecordSortStatus
RecordNum = Get ( RecordNumber ) ;
RecordFndCt = Get ( FoundCount ) ;
RecordNumTotal = Get ( TotalRecordCount ) ;
RecordSortStatus = Get ( SortState )
"Record#: " & RecordNum & " " &
"Found Records: " & RecordFndCt & " " &
"Total Records: " & RecordNumTotal & " " &
"Sort Status: " &
RecordSortStatus = 0 ; "Unsorted" ;
RecordSortStatus = 1 ; "Sorted" ;
RecordSortStatus = 2 ; "Semi-sorted"
//cfRecordsStatus by George Perry, Informing Designs
RecordNum ; RecordFndCt ; RecordNumTotal ; RecordSortStatus
Record: 25 Found Records: 12 Total Records: 2500 Sort Status: Unsorted
I create a calculation field called zRecordsStatus and simply enter this custom function as its only parameter and set Show Results as Text. Sample file also provides a linear formatting of the field.
FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.