Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | str.pos.ex 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.ex

Language: MioScript
Product: MioFactory


Syntax

str.pos.ex(source, stringToFind, caseSensitive, startAt, ignoreComma, ignoreApostrophe, ignoreParenthesis, ignoreAccolade, ignoreBracket, ignoreTags)


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.
BOOLignoreCommaOptional.
Default is false.
Set to true to ignore the part of the strings between comma.
BOOLignoreApostropheOptional.
Default is false.
Set to true to ignore the part of the strings between apostrophe.
BOOLignoreParenthesisOptional.
Default is false.
Set to true to ignore the part of the strings between parenthesis.
BOOLignoreAccoladeOptional.
Default is false.
Set to true to ignore the part of the strings between accolades.
BOOLignoreBracketOptional.
Default is false.
Set to true to ignore the part of the strings between brackets.
BOOLignoreTagsOptional.
Default is false.
Set to true to ignore the part of the strings between tags.


Return value

Position of the first occurrence found, or NULL if not found.



Description

This function performs a search of a string in another string and returns the position of the first occurrence.

It is possible to exclude from the search the parts of the string that are between parenthesis, comma, apostrophe, etc.