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
Current revision (00:56, 26 November 2007) (edit) (undo)
Sandman (Talk | contribs)
m (Notes)
 
(2 intermediate revisions not shown.)
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.+|-
 +| ['''INT''' startposition] || - The position at which to start searching. Default is 0.
|} |}
Line 19: Line 21:
== Notes == == Notes ==
A first character of a string is at position 0. A first character of a string is at position 0.
 +
 +{{Funcbox
 + | category = Strings
 +}}

Current revision


Contents

[edit] 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.

[edit] 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.

[edit] Returns

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

[edit] Notes

A first character of a string is at position 0.


Strings Functions
Asc() • Atof() • Atoi() • Chr() • Find() • Ftoa() • Itoa() • Lcase() • Len() • Strrev() • Substr() • Ucase() •
Personal tools