- This wiki is out of date, use the continuation of this wiki instead
Find
From FenixWiki
(Difference between revisions)
| Revision as of 17:31, 31 August 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Revision as of 17:31, 31 August 2007 (edit) (undo) Sandman (Talk | contribs) m (→Parameters) Next diff → |
||
| Line 13: | Line 13: | ||
| | '''STRING''' searchstring || - The string to search for. | | '''STRING''' searchstring || - The string to search for. | ||
| |- | |- | ||
| - | | [''' | + | | ['''INT''' 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. |
| [INT 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.
