.NODE

Extend()

Category: Repeating

Syntax: Extend ( non-repeatingField )

Parameters:

non-repeatingFieldAny non-repeating field (a field defined to contain only one value).

Data type returned: Text, Number, Date, Time, Timestamp, Container

Description:

Allows a value in non-repeatingField to be applied to every repetition within a repeating field (most commonly a calculation field). Without using the Extend() function, only the first repetition of a repeating calculation field will properly reference the value in non-repeatingField.

Examples:

Given a number field RepCommission, defined to hold three repetitions, a non-repeating number field (SalePrice), and repeating calculation field (SalesCommission), defined as follows:

Round ( RepCommision * Extend ( SalePrice ); 2 )

RepCommission

SalePrice

SalesCommission

.10

18.00

1.80

.12

 

2.16

.15

 

2.40

Without the Extend() function, only the first repetition of SalesCommission would have returned the correct value.


: FileMaker Specifications

FileMaker 8 Product Line

Specifications and Storage Limits

Field Types and Import/Export Formats

: Calculation Functions

Working with Calculations Primer

Calculation Signatures

Calculation Functions

: Custom Functions

Custom Functions Primer

Useful Custom Functions

: Script Steps

Scripting Primer

Script Step Reference

: Quick Reference

FileMaker Error Codes

FileMaker Keyboard Shortcuts

FileMaker Network Ports

FileMaker Server Command Line Reference

FileMaker XML Reference

: Other Resources

Where to Go for More Information

show all menu





FileMaker 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352
Similar book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net