How to set text limit in label component

can we set the text limit in label component

like i fave a text and i want to show only first 5 words on text

is this possible ?

You can use segment text block for this.


ok thanks let me try


This will look at a changing textbox so when you are entering text. If it is longer then 5 characters it will just display the first five characters and put the cursor at the end.

Oh wait you want to show the first five words of a sentence in a label.

This block makes a list while splitting a sentence assuming words are split by spaces, then glues together the first five words and ads another space between the words

Anyone a better way of doing this?.


This is my solution to the problem.


Thanks peter hope it will work in my app

1 Like

I use this in an application to limit the number of characters of a variable to 15.

Because I use it to create a Sqlite database, I replace the spaces with an underscore.


Where it says “Segment” there is a space

1 Like