Head

Return to: Calculated Member Builder Function List

Returns the first specified number of elements in a set.

Syntax

Head(«Set»[, «Numeric Expression»])

Remarks

Returns the first «Numeric Expression» elements in a set. The order of elements is preserved. The default value of «Numeric Expression» is 1. If «Numeric Expression» is less than 1, the empty set is returned. If «Numeric Expression» exceeds the number of tuples in the set, the original set is returned.

Example

Head({USA, Canada, France, Germany, Japan}, 3)

returns the set

{USA, Canada, France}.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.