I have a string:
string cover = "withaname"
I would like to change the withaname
to withnoname
.
I would then like to change withnoname
to withanamegoose
.
What is the best way to accomplish this in LSL?
I have a string:
string cover = "withaname"
I would like to change the withaname
to withnoname
.
I would then like to change withnoname
to withanamegoose
.
What is the best way to accomplish this in LSL?
If you have a special character that will separate your data, you can use functions such as llList2String.
llGetSubString Is probably what you are actually looking for. I really dont understand your exact question though.
string The_String = "withaname";
integer i = llSubStringIndex(The_String, "a");
The_String = llInsertString(llDeleteSubString(The_String, i, i), i, "no");
llSay(0, The_String);
// says "withnoname"
i try to give these the names "aaaaa" or "bbbbb" not with parse or insert or something like this.