|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| str.pos(source, stringToFind, caseSensitive, startAt) |
Parameters
| STRING | source | Source string.
| | STRING | stringToFind | String to find in the source string.
| | BOOL | caseSensitive | Optional. Set to true if the search must be case sensitive. Default is false.
| | INT | startAt | Optional. Position to start the search. |
Return value
| Position of the first occurrence found, or NULL if not found. |
Description
| Search a string in another string and returns the position of the first occurrence. |
MioScript Sample Code
alert(str.pos("HELLO", "LL")) |
|
|
|