Difference between revisions of "StringPos"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Speedo
(update syntax)
imported>Speedo
(Graduating from beta)
 
Line 1: Line 1:
{{Beta}}
A command for [[:Category: Pluggy|Pluggy]].
A command for [[:Category: Pluggy|Pluggy]].



Latest revision as of 20:45, 25 March 2008

A command for Pluggy.

Syntax:

(Position:long) StringPos SearchForStringID:long SourceStringID:long Start:long
                          IgnoreCase:short

Note: All arguments should be on the same line.

Returns the position of the first occurrence of SearchFor in Source, starting the comparison at the position specified by Start. If no match is found, it returns 0.

  • If Start is not specified, the search will begin at the beginning of the source string.
  • If IgnoreCase is 1, the search will not be case sensitive.