list.makeAlphaRange ( )

Function stats

Average user rating
4.0000
29
79
9999
Support
FileMaker 7.0 +
Date posted
21 November 2008
Last updated
07 December 2008
Version
1
Recursive function
No

Author Info
 Genx

18 functions

Average Rating 4.1

author_avatar



 

Function overview

Prototype

list.makeAlphaRange  ( start;   end )


Parameters

start  Starting Character


end  Ending Character


Description

Tags:  Range   List   Array  

A basic function that generates an alpha (character)

Examples

Sample input

list.makeAlphaRange("a";"d")


Sample output

a¶b¶c¶d

 

Function code

Let(
[
chars = "a¶b¶c¶d¶e¶f¶g¶h¶i¶j¶k¶l¶m¶n¶o¶p¶q¶r¶s¶t¶u¶v¶w¶x¶y¶z";
startPos = Position(chars; start ; 0; 1 );
endPos = Position(chars ; end ; 0 ; 1 )
];
    if ( startPos > endPos OR isEmpty(start) ; "?" ;
        Middle( chars ; startPos ; endPos - startPos + 1 )
    )
)

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

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

    Prototype: list.makeAlphaRange( start; end )
    Function Author: Genx (http://www.fmfunctions.com/mid/29)
    Last updated: 07 December 2008
    Version: 1

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

 

 

 

 

 

 

 

Top Tags

Text Parsing  (33)
List  (31)
Date  (28)
XML  (26)
Format  (23)
Sql  (22)
Dev  (20)
Debug  (17)
Interface  (15)
Layout  (15)
Text  (14)
Variables  (12)
Layout Objects  (11)
Filter  (11)
Design  (10)
Array  (7)