Difference between revisions of "Talk:Left"
Jump to navigation
Jump to search
(New page: 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 + ll...) |
|||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
Removing " + llStringLength(divider)" would make this act as described. | 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. -- '''[[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.