Skip to main content



GetMemberValueByIndex Function

Returns the specified field value of member at an index in collection which can be ordered and filtered using filter expression.

Syntax 1

GetMemberValueByIndex(collection, index, returnField, defaultReturnValue)

Returns the specified field value of member at an index in collection which can be ordered and filtered using filter expression.

Arguments

collection Collection - A collection.

index Integer - The index of the member with the value to return.

returnField Field - The field with the value to return.

defaultReturnValue Any - Default value of type of returnfield.

Syntax 2

GetMemberValueByIndex(collection, index, returnField, defaultReturnValue, orderby)

Returns the specified field value of member at an index in collection which can be ordered and filtered using filter expression.

Arguments

collection Collection - A collection.

index Integer - The index of the member with the value to return.

returnField Field - The field with the value to return.

defaultReturnValue Any - Default value of type of returnfield.

orderby SortExpression - Field to order by.

Syntax 3

GetMemberValueByIndex(collection, index, returnField, defaultReturnValue, orderby, filter)

Returns the specified field value of member at an index in collection which can be ordered and filtered using filter expression.

Arguments

collection Collection - A collection.

index Integer - The index of the member with the value to return.

returnField Field - The field with the value to return.

defaultReturnValue Any - Default value of type of returnfield.

orderby SortExpression - Field to order by.

filter FilterExpression - A filter expression.

Remarks

Example:

GetMemberValueByIndex(LineItems, 2, Quantity, 1); // returns 42

Example:

GetMembervalueByIndex(LineItems, 2, Quantity, 1, ProductID); // returns 42

Example:

GetMemberValueByIndex(LineItems, 2, Quantity, 1, ProductID, Quantity > 10); // returns 42