NextValue ( )

Function stats

Average user rating
34
166
9999
Support
FileMaker 8.0 +
Date posted
24 December 2008
Version
1
Recursive function
No

Author Info
 The Shadow

22 functions

Average Rating 4.3

author_avatar



 

Function overview

Prototype

NextValue  ( valueIter )


Parameters

valueIter  A value iterator


Description

Tags:  ValueIterator  

This function uses a value-iterator "object" that is created with the ValueIterator function.

This function provides a forward iterator over the list of values.

The backward iterator is called PrevValue().

Examples

Sample input

NextValue( ValueIterator( "ape¶bear¶jam" ) )


Sample output

ape

 

Function code

Let( [ currentIdx = _getVariable( valueIter; 1 );
values = _getVariable( valueIter; 0 );
numValues = _getVariable( valueiter; 2 ) ];

If ( currentIdx <= numValues;
Let( [ currentIdx = currentIdx+1;
nextValue = GetValue( values; currentIdx );
jnk = _setVariable( valueIter; 1; currentIdx )
];
nextValue
)
)
)

// ===================================
/*

    This function is published on FileMaker Custom Functions
    to check for updates and provide feedback and bug reports
    please visit http://www.fmfunctions.com/fid/166

    Prototype: NextValue( valueIter )
    Function Author: The Shadow (http://www.fmfunctions.com/mid/34)
    Last updated: 24 December 2008
    Version: 1

*/
// ===================================