Hyphenate ( )

Function stats

Average user rating
4.0000
30
78
9999
Support
FileMaker 8.0 +
Date posted
19 November 2008
Last updated
09 December 2008
Version
Recursive function
Yes

Author Info
 Mr Vodka

1 functions

Average Rating 4.0

author_avatar



 

Function overview

Prototype

Hyphenate  ( Field )


Parameters

Field  


Description

Tags:  recursive   hyphen  

Takes a list of values and puts a hyphen in between each value in the list.

Examples

Sample input

900
200
600
500


Sample output

900 - 200
200 - 600
600 - 500

 

Function code

Let ( i = ValueCount ( Field );

Case ( i > 1;
GetValue ( Field ; 1 ) & " - " & GetValue ( Field ; 2 ) & ¶ &
Hyphenate ( RightValues ( Field ; i - 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/78

    Prototype: Hyphenate( Field )
    Function Author: Mr Vodka (http://www.fmfunctions.com/mid/30)
    Last updated: 09 December 2008
    Version: 1.3

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

 

Comments

Genx
21 November 2008



I can see a few uses for this one ;)
  General comment

 

 

 

 

 

Top Tags

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