Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

24 character max for llDialog buttons question

Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
10-13-2006 22:28
Is there any way to chop off or abbreviate the individual elements in the list to a max of 24 characters each?

If not then I will have the priviledge of making my first hud with set text buttons I guess.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
10-13-2006 23:06
llStringLength & llGetSubString
_____________________
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
10-14-2006 10:01
Thing to be aware of though Jesse,
Although teh limit is 24 the dispalyed text will be limited to about 12-15 characters.
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
10-14-2006 10:05
From: Jesse Barnett
Is there any way to chop off or abbreviate the individual elements in the list to a max of 24 characters each?

CODE

string trim(string Data, integer Length) {

if( llStringLength( Data ) <= Length ) { return Data; }
else { return llGetSubString( Data, 0, Length - 1 ); }
}