Difference between revisions of "Talk:Left"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 10: Line 10:


Moving the second parameter back one, and putting a "-1" as the second would work, if it were not for the fact we want to exclude the separator.
Moving the second parameter back one, and putting a "-1" as the second would work, if it were not for the fact we want to exclude the separator.
:You are correct, I have corrected the function as you suggested. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 14:33, 4 April 2009 (UTC)

Latest revision as of 07:33, 4 April 2009

Contrary to the description, this appears to return the text to the left of the first occurrence of the separator, and the separator itself:

return llDeleteSubString( src, index + llStringLength(divider), -1);

Removing " + llStringLength(divider)" would make this act as described.

This must have been a transposition error using the definition of right, which contains this correct expression:

return llDeleteSubString( src, 0, index + llStringLength(divider) - 1);

Moving the second parameter back one, and putting a "-1" as the second would work, if it were not for the fact we want to exclude the separator.

You are correct, I have corrected the function as you suggested. -- Strife (talk|contribs) 14:33, 4 April 2009 (UTC)