Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5963 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

with any character & " "

Something like this:

Substitute ( textField, "*"; "*" & " ")

Except of course this doesn't work.

Seems like my brain isn't working too well on that...

Any suggestions for the easiest way to do it?

Thanks,

Michael

Posted

This insert a space between each char of a 6 chars field, w/o a custom function.

Replace ( Replace ( Replace ( Replace ( Replace ( text ; 2 ; 0 ; " " ) ; 4 ; 0 ; " " ) ; 6 ; 0 ; " " ) ; 8 ; 0 ; " " ) ; 10 ; 0 ; " " )

P.S.:P More "Replace" for more chars :

Posted

Hi Fabrice

( this is only for us ;-) )

Space ( text )

Let(

$count = $count + 2 ;

Case(

$count ≤ Length ( text ) ; Space ( Replace ( text ; $count ; 0 ; " " ) ) ;

Let ( $count = "" ; text )

)

)

Posted

Since you have the developer version, you can easily use a custom function for this:

InsertSpaces ( text )

Let (

len = Length ( text )

;

Case (

len > 1 ;

InsertSpaces ( Left ( text ; len - 1 ) ) & " " & Right ( text ; 1 ) ;

text

)

)

This topic is 5963 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.