ActiveReports 12
Mid(String,Int32,Int32) Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace > Strings Class > Mid Method : Mid(String,Int32,Int32) Method
Required. String expression from which characters are returned.
Required. Integer expression. Starting position of the characters to return. If start is greater than the number of characters in str, the Mid function returns a zero-length string (""). start is one based.
Optional. Integer expression. Number of characters to return. If omitted or if there are fewer than Length characters in the text (including the character at position start), all characters from the start position to the end of the string are returned.
Returns a string containing a specified number of characters from a string.
Syntax
'Declaration
 
Public Overloads Shared Function Mid( _
   ByVal str As String, _
   ByVal start As Integer, _
   ByVal Length As Integer _
) As String
public static string Mid( 
   string str,
   int start,
   int Length
)

Parameters

str
Required. String expression from which characters are returned.
start
Required. Integer expression. Starting position of the characters to return. If start is greater than the number of characters in str, the Mid function returns a zero-length string (""). start is one based.
Length
Optional. Integer expression. Number of characters to return. If omitted or if there are fewer than Length characters in the text (including the character at position start), all characters from the start position to the end of the string are returned.

Return Value

Returns a string containing a specified number of characters from a string.
See Also

Reference

Strings Class
Strings Members
Overload List