Clear Up
SharpKit Reference

JsString.lastIndexOf Method (JsString)

Returns the last occurrence of a substring within a String object.

Namespace: SharpKit.JavaScript

Class: JsString


public JsNumber lastIndexOf(JsString sub)


Type: SharpKit.JavaScript.JsString
The string to search for within the String object.

Return Value

Type: SharpKit.JavaScript.JsNumber
an integer value indicating the beginning of the substring within the String object. If the substring is not found, a -1 is returned. If startindex is negative, startindex is treated as zero. If it is larger than the greatest character position index, it is treated as the largest possible index.
© Copyright 2005-2011 SharpKit. All rights reserved.