Table of Contents
strfindDescriptionFind the position of a substring within a text string. Function prototypeint strfind <string:Text> <string:TextToFind> <int:StartAt> Arguments
Return valueAn integer containing the position of the start of TextToFind in Text. Position indices are zero based. If TextToFind is not found in Text at or after the position given by StartAt, -1 is returned. Example// find the position of "test" in "This is a test" (ans:10) echo <strfind "This is a test" "test" 0> … the output of which is written to the event log by echo as: 10 CommentsCase sensitivity
See alsoExcept where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|