5,605,766 Members 48,341 Now Online
XDA Developers Android and Mobile Development Forum

[Q] String manipulation

Tip us?
 
tikl
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2009
Default [Q] String manipulation

Is there any possibility to display only the X characters from a string?
Like the LEFT$ function in Basic for example.

I'm trying to fit a certain string in a box (see image below).

Thank you,
Tikl
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2013-12-28-20-54-42.jpg
Views:	4555
Size:	54.1 KB
ID:	2479943  
 
tikl
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2009
I found it!

You have to use a rich text module (I was using only text) and the [tr] BB code will format the text as you will.
It even adds '...' at the end of a trimmed text!

Tikl
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes