Visual Studio .Netframework

What is string function? String function is an function which can manage data in text ( string ). There is some function which used in Visual Studio.NET programming.

String FunctionDescription
Asc, AscWReturns an Integer value representing the character code corresponding to a character.
Chr, ChrWReturns the character associated with the specified character code.
FilterReturns a zero-based array containing a subset of a String array based on specified filter criteria.
FormatReturns a string formatted according to instructions contained in a format String expression.
FormatCurrencyReturns an expression formatted as a currency value using the currency symbol defined in the system control panel.
FormatDateTimeReturns a string expression representing a date/time value.
FormatNumberReturns an expression formatted as a number.
FormatPercentReturns an expression formatted as a percentage (that is, multiplied by 100) with a trailing % character.
InStrReturns an integer specifying the start position of the first occurrence of one string within another.
InStrRevReturns the position of the first occurrence of one string within another, starting from the right side of the string.
JoinReturns a string created by joining a number of substrings contained in an array.
LCaseReturns a string or character converted to lowercase.
LeftReturns a string containing a specified number of characters from the left side of a string.
LenReturns an integer that contains the number of characters in a string.
LSetReturns a left-aligned string containing the specified string adjusted to the specified length.
LTrimReturns a string containing a copy of a specified string with no leading spaces.
MidReturns a string containing a specified number of characters from a string.
ReplaceReturns a string in which a specified substring has been replaced with another substring a specified number of times.
RightReturns a string containing a specified number of characters from the right side of a string.
RSetReturns a right-aligned string containing the specified string adjusted to the specified length.
RTrimReturns a string containing a copy of a specified string with no trailing spaces.
SpaceReturns a string consisting of the specified number of spaces.
SplitReturns a zero-based, one-dimensional array containing a specified number of substrings.
StrCompReturns -1, 0, or 1, based on the result of a string comparison.
StrConvReturns a string converted as specified.
StrDupReturns a string or object consisting of the specified character repeated the specified number of times.
StrReverseReturns a string in which the character order of a specified string is reversed.
TrimReturns a string containing a copy of a specified string with no leading or trailing spaces.
UCaseReturns a string or character containing the specified string converted to uppercase.

Note :

  • All of the function above working correctly in Visual Studio 2010, 2012, 2013, and 2015.
  • The syntax code is based on the .netframework used.
  • To see to complete example and syntax code, click in the string function do you want on the table above.

Referece :

Kamu bisa membaca artikel ini dalam bahasa Indonesia :

Fungsi String Microsoft Visual Studio VB.NET

Learn and practice make easier your work tomorrow