Compartilhar via


SubString(string,int,int) function

 
Microsoft Office Live Communications Server 2005 with SP1

SubString

The SubString function extracts a string of specified length from a longer string in which it occurs.

string SubString(
  string searchString,
  int startingIndex,
  int Length
);

Parameters

  • searchString
    The string to be searched.
  • startingIndex
    The place in searchString where the string to be extracted begins.
  • Length
    The number of characters in the string to be extracted. Optional.

Return Values

Returns the specified string if present in searchString. If the specified string is not present, returns null.

The length argument is optional. If no value is passed, the function returns the string from startingIndex to the end of searchString.

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