Brian Dunning's FileMaker Custom Functions

CF_ReplicaCar ( CadenaOriginal ; CantidadVeces ; CadenaResultante ) )

Replicate CantidadVeces Times a Character or String, on resultan String

  Average rating: 4.3 (33 votes) Log in to vote

Luis Gonzáles and Rigoberto Carbonell   Luis Gonzáles and Rigoberto Carbonell
AFS Group, Inc.
http://www.afsgroup.us/

  Sample input:
CF_("" ; 6 ; "A")
  Sample output:
AAAAAA

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

You can get a resultan string, by Replicating a string or a character, severals times depending on what your final result will be.

 

Comments

César   César, Oviedo - España
Nov 25, 2014
Hola,

No me funciona vuestra función, ¿La habéis probado?

Llamar a la función con : ReplicaCadena( Cadena; Veces; Resultado )

La función :
If(veces>0;ReplicaCadena(Cadena; Veces -1; Resultado & Cadena) ; Resultado)


Un saludo
 
César   César, Oviedo - España
Nov 25, 2014
Se me pasaba, en el mensaje anterior incluyo una función que si funciona correctamente.
 
Tjebbe van Tijen   Tjebbe van Tijen, IMP
Feb 10, 2025
BRAVO... how a good idea and simple function can be BADLT presented...
and what is good is totally confused...
Maybe the authors will be so nice to repost this function in a proper way...
I love briandunnig functions, but this is useless, what a pitty!
 

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 21 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: