Text Functions

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
  • 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.
Reply
  • 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.
Children
No Data