ResetToEnd ( )

Function stats

Average user rating
5.0000
34
168
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

ResetToEnd  ( valueIter )


Parameters

valueIter  A value-iterator to be reset


Description

Tags:  ValueIterator  

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

Once reset to the end, the PrevValue() function would be used to retrieve values backwards.

The function returns a reference to the reset valueIter, which is always the same value as the one that was passed in, so calls can be nested if desired.

Examples

Sample input

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


Sample output

$$_tmp1

 

Function code

Let( [ jnk = _setVariable( valueIter; 1; _getVariable(valueIter; 2)+1 ) ];
valueIter
)

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

    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/168

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

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