Strings

Strings are supported by the .NET String class. The String data type can represent a series of characters and can contain approximately up to 2 billion Unicode characters. There are many built-in functions in the String class. Some .NET Framework function are also built into the String class. Some common String functions are discussed below:

  • LCase: Converts a string to lower case
  • UCase:Converts a string to uppercase
  • Len: Calculates the number of characters in the string
  • LTrim:Omits spaces that appear on the left-side of the string
  • RTrim:Omits spaces that appear on the Right-side of the string
  • Trim: Omits both leading and trailing spaces
  • Clone: Clones a string
  • Concat:Joins two strings
  • Space: Used to create a string with spaces
  • Left: Takes two arguments and return a string that consists of the left most characters of the string sent
  • Right: Takes two arguments and return a string that consists of the Right most characters of the string sent
  • Instr: Searches and return a shorter string within a long string
  • Replace:Searches for a small string in a long string and replace it with the specified string.

No comments:

Post a Comment