Talk:LlGetSubString

From Second Life Wiki
Jump to navigation Jump to search

What should be mentioned is if "start" starts at 0 or at 1.

(Same for llDeleteSubString and llInsertString!)

Start starts at integer 0 -- Eddy (talk|contribs) 11:20, 8 June 2009 (UTC)

I wonder if anyone can explain this ----> llGetSubString() returns a string. If that [[string## is expressed via another function for example llSay() the result is as you would expect (substring "A" : say "A"). However if the substring is used within the script to make reference to another string or key etc. it fails. The evidence being that if "A" is typed into the script in place of llGetSubString() where substring would return "A" and the "A" in question is the name of a string or key to be used the result is correct. If llGetSubString() is used to gather the "A" up the string or key that is called "A" is not referenced.

I believe this has something to do with UTF-8 or something but I cannot figure out how to get around it. Could a brainbox of lsl contribute on this point? -- Eddy (talk|contribs) 11:20, 8 June 2009 (UTC)