_tmpVarName ( )

Function stats

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

_tmpVarName  (  )


Parameters

No parameters for this function.


Description

Tags:  Variables  

This function creates a temporary variable name.

The global counter "$$_tmp0" is used to remember names that were already handed out, so names won't repeat in a single run of FileMaker. The new names look similar, ie, "_tmp15".

While a simple function, I have found this helpful when creating dynamic "objects" that are stored within global variables.

See my ValueIterator function for an example.

Examples

Sample input

_tmpVarName


Sample output

_tmp12

 

Function code

Let( $$_tmp0 = $$_tmp0 + 1; "_tmp" & $$_tmp0 )

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

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

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

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