Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How can I get a string from a character

Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
11-17-2009 07:50
How can I get a string from a certain place to the right or left of a string.

Such as

Hello&World

How can I get just world, without knowing hello and world will be there.
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
11-17-2009 08:06
It is all in the string functions:
http://www.lslwiki.net/lslwiki/wakka.php?wakka=string
_____________________
From Studio Dora
Ron Khondji
Entirely unlike.
Join date: 6 Jan 2007
Posts: 224
11-17-2009 08:18
Or you can use llParseString2List.
http://wiki.secondlife.com/wiki/LlParseString2List

CODE

list Temp = llParseString2List( "hello&world", ["&"], [] );
string left = llList2String( Temp, 0 ); // hello
string right = llList2String( Temp, 1 ); // world