IndexOfString(string,string,bool) function

 
Microsoft Office Live Communications Server 2005 with SP1

IndexOfString

The IndexOfString function returns the zero-based index of the first occurrence of the search string in the input string. If the Search string is not found, the function returns -1.

intIndexOfString(stringtargetString,
stringsearchString,
boolignoreCase);

Parameters

  • targetString
    The string to be searched
  • searchString
    The string to search for
  • ignoreCase
    True or false

Return Values

Returns a zero-based index of the first occurrence of the search string in the input string. If the search string is not found, returns -1. Also, it returns -1 if either targetString or searchString is empty, null or the length of the target string is less than that of the search string.

  
  What did you think of this topic?
  © 2008 Microsoft Corporation. All rights reserved.