Clear Up
SharpKit Reference

JsString.lastIndexOf Method (JsString, JsNumber)

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

Namespace: SharpKit.JavaScript

Class: JsString

Syntax

public JsNumber lastIndexOf(JsString substring, JsNumber startindex)

Parameters

substring
Type: SharpKit.JavaScript.JsString
The substring to search for within the String object.
startindex
Type: SharpKit.JavaScript.JsNumber
Integer value specifying the index to begin searching within the String object. If omitted, searching begins at the end of the string.

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.