Michael Reade Posted September 24, 2008 Posted September 24, 2008 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
Fitch Posted September 24, 2008 Posted September 24, 2008 Are you saying that you want to add a space after every character in the text field? Search custom functions for "insert."
Raybaudi Posted September 24, 2008 Posted September 24, 2008 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. More "Replace" for more chars :
Raybaudi Posted September 24, 2008 Posted September 24, 2008 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 ) ) )
comment Posted September 24, 2008 Posted September 24, 2008 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 ) )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now