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/

Share on Facebook Share on Twitter

  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.
 

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

Under construction. Email me your wish list for improvements.