Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+2
person also asked this
people also asked this
Replies
9 replies
Answers
1 answer
Subscribers
9 subscribers
Views
13326 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Text Functions
ovidiubalan
over 7 years ago
Hello
I need to split a big text(200 characters let's say) so that at each 4th character I want to insert a new line.
The purpose is to display this big text in a paging grid.
Any ideas ?
Thanks in advance !
Ovidiu
OriginalPostID-251160
Discussion posts and replies are publicly visible
Parents
0
PhilB
A Score Level 1
over 7 years ago
Yeah that's a lot simpler! Thinking about the original requirement, if the text is a paragraph of text, it would probably be better to do a fn!split() on spaces and then rejoin each set of 4 elements of that array with a char(10). Splitting a paragraph of text by a fixed number is going to look extremely odd as you're likely to be splitting mid-word in many cases.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
PhilB
A Score Level 1
over 7 years ago
Yeah that's a lot simpler! Thinking about the original requirement, if the text is a paragraph of text, it would probably be better to do a fn!split() on spaces and then rejoin each set of 4 elements of that array with a char(10). Splitting a paragraph of text by a fixed number is going to look extremely odd as you're likely to be splitting mid-word in many cases.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data