This wiki is out of date, use the continuation of this wiki instead

Find

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 17:31, 31 August 2007 (edit)
Sandman (Talk | contribs)
(New page: Category:functions Category:strings ==Definition== '''INT''' find ( <'''STRING''' str> , <'''STRING''' searchstring> , [<'''INT''' startposition>] ) Returns the position of the f...)
← Previous diff
Revision as of 17:31, 31 August 2007 (edit) (undo)
Sandman (Talk | contribs)
m
Next diff →
Line 10: Line 10:
{| {|
| '''STRING''' str || - The string in which to search. | '''STRING''' str || - The string in which to search.
 +|-
| '''STRING''' searchstring || - The string to search for. | '''STRING''' searchstring || - The string to search for.
 +|-
| ['''STRING''' startposition] || - The position at which to start searching. Default is 0. | ['''STRING''' startposition] || - The position at which to start searching. Default is 0.
|} |}

Revision as of 17:31, 31 August 2007


Contents

Definition

INT find ( <STRING str> , <STRING searchstring> , [<INT startposition>] )

Returns the position of the first appearance of a string in another string. Optionally at a certain starting position.

Parameters

STRING str - The string in which to search.
STRING searchstring - The string to search for.
[STRING startposition] - The position at which to start searching. Default is 0.

Returns

STRING : The position of the first appearance of searchstring in str

Notes

A first character of a string is at position 0.

Personal tools