The CollectionLooup function returns the value of a field or expression for the first collection member that satisfies a given filter expression.
Syntax 1
|
The CollectionLooup function returns the value of a field or expression for the first collection member that satisfies a given filter expression. |
|
CollectionLookup(collection, returnField, filter) |
|
Arguments: |
|
|
collection |
Collection - A collection. |
|
|
returnField |
Field - The field to return. |
|
|
filter |
FilterExpression - The filter criteria. |
Syntax 2
|
The CollectionLooup function returns the value of a field or expression for the first collection member that satisfies a given filter expression. |
|
CollectionLookup(collection, returnExpression, filter) |
|
Arguments: |
|
|
collection |
Collection - A collection. |
|
|
returnExpression |
Any - An expression that resolves to the return value. |
|
|
filter |
FilterExpression - The filter criteria. |
Syntax 3
|
The CollectionLooup function returns the value of a field or expression for the first collection member that satisfies a given filter expression. |
|
CollectionLookup(collection, returnField, filter, default) |
|
Arguments: |
|
|
collection |
Collection - A collection. |
|
|
returnField |
Field - The field to return. |
|
|
filter |
FilterExpression - The filter criteria. |
|
|
default |
Any - The default return value if no members match the filter criteria. |
Syntax 4
|
The CollectionLooup function returns the value of a field or expression for the first collection member that satisfies a given filter expression. |
|
CollectionLookup(collection, returnExpression, filter, default) |
|
Arguments: |
|
|
collection |
Collection - A collection. |
|
|
returnExpression |
Any - An expression that resolves to the return value. |
|
|
filter |
FilterExpression - The filter criteria. |
|
|
default |
Any - The default return value if no members match the filter criteria. |
Remarks
- Example: CollectionLookup(Vehicles, ID, Year=1999 And Make="Ford") returns 42.
- Example: CollectionLookup(Vehicles, ID, Year=1955 And Make="DeLorean", -1) returns -1.
Comments
0 comments
Please sign in to leave a comment.