Indent ( )

Function stats

Average user rating
148
410
9999
Support
FileMaker 7.0 +
Date posted
29 December 2016
Last updated
29 December 2016
Version
Recursive function
No

Author Info
 Steve Allen

15 functions

Average Rating None

author_avatar



 

Function overview

Prototype

Indent  ( lst;   delimiter;   qty;   tabChr )


Parameters

lst  List to be indented


delimiter  The character(s) to used to separate values in the list.


qty  How many indents to do.


tabChr  The character(s) used to create the indent.


Description

Indents any list by the specified number of indentations, using the specified character(s) (e.g. Tab or set of spaces) to offset.

Examples

Sample input

Indent ( "Hello¶World" ; "¶" ; 1 ; "xxxx-" )


Sample output

xxxx-Hello
xxxx-World

 

Function code

Let ([
    tabs    = Substitute ( Right ( "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ; qty ) ; "x" ; tabChr )

;    output    = tabs & Substitute ( lst ; delimiter ; delimiter & tabs )
];
output
)

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

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

    Prototype: Indent( lst; delimiter; qty; tabChr )
    Function Author: Steve Allen (http://www.fmfunctions.com/mid/148)
    Last updated: 29 December 2016
    Version: 1.2

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

 

 

 

 

 

 

 

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)