Returns the zero-based index number of the first occurrence of the specified substring within the string.
Copyright © 2016 Mobilengine Corp. All rights reserved. version: 7.0.4.19927
Returns the zero-based index number of the first occurrence of the specified substring within the string.
Parameters
Parameter | Type | Description |
---|---|---|
lookup-string (required) | string | The substring whose index is to be retrieved. |
Returns
The index number at which the lookup-string occurs in the string. The method returns
-1
if the lookup-string does not occur in the string.