Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | str.pos SEARCH    

  Functions
str.adjustLineBreaks
str.char
str.comma
str.escape
str.explode
str.implode
str.left
str.len
str.lower
str.pos
str.pos.ex
str.replace
str.right
str.sub
str.trim
str.unescape
str.upper
str.wrapText

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
str.pos

Language: MioScript
Product: MioFactory


Syntax

str.pos(source, stringToFind, caseSensitive, startAt)


Parameters

STRINGsourceSource string.
STRINGstringToFindString to find in the source string.
BOOLcaseSensitiveOptional.
Set to true if the search must be case sensitive.
Default is false.
INTstartAtOptional.
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"))