Brian Dunning's FileMaker Custom Functions

IndexList ( size )

Speedily (and with limited recursion) return a list of up to one million integers from 0 to (size-1).

  Average rating: 4.4 (32 votes) Log in to vote

Debi Fuchs   Debi Fuchs - Show more from this author
Aptworks Consulting
http://www.aptworks.com

Share on Facebook Share on Twitter

  Sample input:
IndexList ( 100 )
  Sample output:
"01¶02¶03¶...¶99"

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

/*
CUSTOM FUNCTION: IndexList ( size )
© 2008 Debi Fuchs of Aptworks Consulting, debi@aptworks.com

Speedily (and with limited recursion) return an "index list" of integers from 0 to (size-1). This is useful mostly as a helper to various other functions.

NOTE: This implementation uses no recursion. (See IndexList_PartlyRecursive for a recursive version. It uses just a little more stack space, but is slightly faster than this one.)

LAST MODIFIED: 13-AUG-2008 by Debi Fuchs of Aptworks Consulting

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth:

Under construction. Email me your wish list for improvements.