Repeat ( )

Function stats

Average user rating
4.0000
34
80
9999
Support
FileMaker 7.0 +
Date posted
24 November 2008
Version
1
Recursive function
Yes

Author Info
 The Shadow

22 functions

Average Rating 4.3

author_avatar



 

Function overview

Prototype

Repeat  ( char;   times )


Parameters

char  


times  


Description

Tags:  Repeat  

Repeats a short string a variable number of times.

Examples

Sample input

Repeat( "a"; 3 )


Sample output

aaa

 

Function code

If ( times <= 0; "";
char & Repeat( char; times-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/80

    Prototype: Repeat( char; times )
    Function Author: The Shadow (http://www.fmfunctions.com/mid/34)
    Last updated: 24 November 2008
    Version: 1

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

 

Comments

The Shadow
23 December 2008



RepeatPlus() is a much better implementation of this.
  General comment