# User-defined variables

### Creating a variable using the Variables window

{% hint style="info" %}
You need to have a robot open to use the Variables window.
{% endhint %}

*   Click **Add/Modify** button on the **Variables** pane. The **Variables** window will appear.\
    \


    <figure><img src="https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2F8zPiV7vXeeC81cANRK64%2Fimage.png?alt=media&#x26;token=34bf631f-5c38-47d8-92a4-a494ac23fe1d" alt=""><figcaption></figcaption></figure>



* Click the new button and select the type of the variable to create a variable.
* Type name and value and click save.

{% hint style="danger" %}
The initial value depends on the selected variable type. If there is a mismatch between type and value, an error will be shown.
{% endhint %}

<figure><img src="https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2FoQCMvvmAamdoguiaKL18%2Fimage.png?alt=media&#x26;token=f18b628e-d00a-4910-ba0b-d856fb6a9127" alt=""><figcaption></figcaption></figure>

### Available types for manual creation

Only the following types of variables can be created using the variable window. There are many more types of Automatic Variables created by activities, they are only for passing data between activities and cannot be created by a user.

#### Primitives

| **Type**       | **Assignable Values**             |
| -------------- | --------------------------------- |
| String         | String and numbers. e.g. `2, abc` |
| Integer        | Integers e.g. `123`               |
| System.Boolean | Boolean values `True, False`      |

#### Objects

| **Type**    | **Assignable Values**                               |
| ----------- | --------------------------------------------------- |
| Date        | Date values - 12/05/2012                            |
| DateTime    | Datetime values - 12-01-2021-12:11:33               |
| File        | A path to a file                                    |
| Folder      | A path to a folder                                  |
| Process     | The name of a windows process. e.g. svchost         |
| Application | The name of a windows application. e.g. notepad.exe |
| List        |                                                     |

#### Advanced

| **Type** | **Assignable Values**                                      |
| -------- | ---------------------------------------------------------- |
| Computed | A C# script to access properties exposed by the variables. |

## Detailed Description

### Integer

The Integer value type represents negative and positive integers. It can't store a floating-point number or a character.

{% tabs %}
{% tab title="Properties" %}
| Property  | Description                                 |
| --------- | ------------------------------------------- |
| RawValue  | Gets the value of the variable.             |
| LongValue | Gets the int64 value of the variable.       |
| IntValue  | Gets the int32 value of the variable.       |
| RawType   | Gets the type of the value of the variable. |
{% endtab %}

{% tab title="Functions" %}
| Function       | Description                                                                     |
| -------------- | ------------------------------------------------------------------------------- |
| HasIntValue()  | Returns a Boolean value indicating whether the variable value is of type int32. |
| HasLongValue() | Returns a Boolean value indicating whether the variable value is of type int64. |
{% endtab %}
{% endtabs %}

### String

A string value stores text information as a collection of characters.

{% tabs %}
{% tab title="Properties" %}
| **Property** | **Description**               |
| ------------ | ----------------------------- |
| Length       | Gets the number of characters |
{% endtab %}

{% tab title="Functions" %}
| **Function**                                                                                                                                                                                                                                     | **Description**                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Compare(String, Int32, String, Int32, Int32, Boolean)](https://docs.microsoft.com/en-us/dotnet/api/system.string.compare?view=net-5.0#System_String_Compare_System_String_System_Int32_System_String_System_Int32_System_Int32_System_Boolean_) | Compares substrings of two specified [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order.                                                                                     |
| [Compare(String, String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.compare?view=net-5.0#System_String_Compare_System_String_System_String_)                                                                                     | Compares two specified [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) objects and returns an integer that indicates their relative position in the sort order.                                                                                                                                     |
| [Compare(String, String, Boolean)](https://docs.microsoft.com/en-us/dotnet/api/system.string.compare?view=net-5.0#System_String_Compare_System_String_System_String_System_Boolean_)                                                             | Compares two specified [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order.                                                                                                   |
| [CompareOrdinal(String, Int32, String, Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.compareordinal?view=net-5.0#System_String_CompareOrdinal_System_String_System_Int32_System_String_System_Int32_System_Int32_)    | Compares substrings of two specified [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) objects by evaluating the numeric values of the corresponding [Char](https://docs.microsoft.com/en-us/dotnet/api/system.char?view=net-5.0) objects in each substring.                                          |
| [CompareOrdinal(String, String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.compareordinal?view=net-5.0#System_String_CompareOrdinal_System_String_System_String_)                                                                | Compares two specified [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) objects by evaluating the numeric values of the corresponding [Char](https://docs.microsoft.com/en-us/dotnet/api/system.char?view=net-5.0) objects in each string.                                                           |
| [CompareTo(Object)](https://docs.microsoft.com/en-us/dotnet/api/system.string.compareto?view=net-5.0#System_String_CompareTo_System_Object_)                                                                                                     | Compares this instance with a specified [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object?view=net-5.0) and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object?view=net-5.0). |
| [CompareTo(String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.compareto?view=net-5.0#System_String_CompareTo_System_String_)                                                                                                     | Compares this instance with a specified [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified string.                                                                    |
| [Concat(IEnumerable\<String>)](https://docs.microsoft.com/en-us/dotnet/api/system.string.concat?view=net-5.0#System_String_Concat_System_Collections_Generic_IEnumerable_System_String__)                                                        | Concatenates the members of a constructed [IEnumerable\<T>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1?view=net-5.0) collection of type [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0).                                                                  |
| [Concat(Object)](https://docs.microsoft.com/en-us/dotnet/api/system.string.concat?view=net-5.0#System_String_Concat_System_Object_)                                                                                                              | Creates the string representation of a specified object.                                                                                                                                                                                                                                                                             |
| [Concat(Object, Object)](https://docs.microsoft.com/en-us/dotnet/api/system.string.concat?view=net-5.0#System_String_Concat_System_Object_System_Object_)                                                                                        | Concatenates the string representations of two specified objects.                                                                                                                                                                                                                                                                    |
| [Concat(Object, Object, Object)](https://docs.microsoft.com/en-us/dotnet/api/system.string.concat?view=net-5.0#System_String_Concat_System_Object_System_Object_System_Object_)                                                                  | Concatenates the string representations of three specified objects.                                                                                                                                                                                                                                                                  |
| [Concat(Object\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.concat?view=net-5.0#System_String_Concat_System_Object___)                                                                                                        | Concatenates the string representations of the elements in a specified [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object?view=net-5.0) array.                                                                                                                                                                       |
| [Concat(String, String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.concat?view=net-5.0#System_String_Concat_System_String_System_String_)                                                                                        | Concatenates two specified instances of [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0).                                                                                                                                                                                                            |
| [Concat(String, String, String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.concat?view=net-5.0#System_String_Concat_System_String_System_String_System_String_)                                                                  | Concatenates three specified instances of [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0).                                                                                                                                                                                                          |
| [Concat(String, String, String, String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.concat?view=net-5.0#System_String_Concat_System_String_System_String_System_String_System_String_)                                            | Concatenates four specified instances of [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0).                                                                                                                                                                                                           |
| [Concat(String\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.concat?view=net-5.0#System_String_Concat_System_String___)                                                                                                        | Concatenates the elements of a specified [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) array.                                                                                                                                                                                                     |
| [Contains(Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.contains?view=net-5.0#System_String_Contains_System_Char_)                                                                                                            | Returns a value indicating whether a specified character occurs within this string.                                                                                                                                                                                                                                                  |
| [Contains(String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.contains?view=net-5.0#System_String_Contains_System_String_)                                                                                                        | Returns a value indicating whether a specified substring occurs within this string.                                                                                                                                                                                                                                                  |
| [EndsWith(Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.endswith?view=net-5.0#System_String_EndsWith_System_Char_)                                                                                                            | Determines whether the end of this string instance matches the specified character.                                                                                                                                                                                                                                                  |
| [EndsWith(String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.endswith?view=net-5.0#System_String_EndsWith_System_String_)                                                                                                        | Determines whether the end of this string instance matches the specified string.                                                                                                                                                                                                                                                     |
| [Equals(Object)](https://docs.microsoft.com/en-us/dotnet/api/system.string.equals?view=net-5.0#System_String_Equals_System_Object_)                                                                                                              | Determines whether this instance and a specified object, which must also be a [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) object, have the same value.                                                                                                                                          |
| [Equals(String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.equals?view=net-5.0#System_String_Equals_System_String_)                                                                                                              | Determines whether this instance and another specified [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) object have the same value.                                                                                                                                                                  |
| [Equals(String, String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.equals?view=net-5.0#System_String_Equals_System_String_System_String_)                                                                                        | Determines whether two specified [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) objects have the same value.                                                                                                                                                                                       |
| [Format(String, Object)](https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=net-5.0#System_String_Format_System_String_System_Object_)                                                                                        | Replaces one or more format items in a string with the string representation of a specified object.                                                                                                                                                                                                                                  |
| [Format(String, Object, Object)](https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=net-5.0#System_String_Format_System_String_System_Object_System_Object_)                                                                  | Replaces the format items in a string with the string representation of two specified objects.                                                                                                                                                                                                                                       |
| [Format(String, Object, Object, Object)](https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=net-5.0#System_String_Format_System_String_System_Object_System_Object_System_Object_)                                            | Replaces the format items in a string with the string representation of three specified objects.                                                                                                                                                                                                                                     |
| [Format(String, Object\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=net-5.0#System_String_Format_System_String_System_Object___)                                                                                  | Replaces the format item in a specified string with the string representation of a corresponding object in a specified array.                                                                                                                                                                                                        |
| [IndexOf(Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.indexof?view=net-5.0#System_String_IndexOf_System_Char_)                                                                                                               | Reports the zero-based index of the first occurrence of the specified Unicode character in this string.                                                                                                                                                                                                                              |
| [IndexOf(Char, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.indexof?view=net-5.0#System_String_IndexOf_System_Char_System_Int32_)                                                                                           | Reports the zero-based index of the first occurrence of the specified Unicode character in this string. The search starts at a specified character position.                                                                                                                                                                         |
| [IndexOf(Char, Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.indexof?view=net-5.0#System_String_IndexOf_System_Char_System_Int32_System_Int32_)                                                                       | Reports the zero-based index of the first occurrence of the specified character in this instance. The search starts at a specified character position and examines a specified number of character positions.                                                                                                                        |
| [IndexOf(String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.indexof?view=net-5.0#System_String_IndexOf_System_String_)                                                                                                           | Reports the zero-based index of the first occurrence of the specified string in this instance.                                                                                                                                                                                                                                       |
| [IndexOf(String, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.indexof?view=net-5.0#System_String_IndexOf_System_String_System_Int32_)                                                                                       | Reports the zero-based index of the first occurrence of the specified string in this instance. The search starts at a specified character position.                                                                                                                                                                                  |
| [IndexOf(String, Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.indexof?view=net-5.0#System_String_IndexOf_System_String_System_Int32_System_Int32_)                                                                   | Reports the zero-based index of the first occurrence of the specified string in this instance. The search starts at a specified character position and examines a specified number of character positions.                                                                                                                           |
| [IndexOfAny(Char\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.indexofany?view=net-5.0#System_String_IndexOfAny_System_Char___)                                                                                                | Reports the zero-based index of the first occurrence in this instance of any character in a specified array of Unicode characters.                                                                                                                                                                                                   |
| [IndexOfAny(Char\[\], Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.indexofany?view=net-5.0#System_String_IndexOfAny_System_Char___System_Int32_)                                                                            | Reports the zero-based index of the first occurrence in this instance of any character in a specified array of Unicode characters. The search starts at a specified character position.                                                                                                                                              |
| [IndexOfAny(Char\[\], Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.indexofany?view=net-5.0#System_String_IndexOfAny_System_Char___System_Int32_System_Int32_)                                                        | Reports the zero-based index of the first occurrence in this instance of any character in a specified array of Unicode characters. The search starts at a specified character position and examines a specified number of character positions.                                                                                       |
| [Insert(Int32, String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.insert?view=net-5.0#System_String_Insert_System_Int32_System_String_)                                                                                          | Returns a new string in which a specified string is inserted at a specified index position in this instance.                                                                                                                                                                                                                         |
| [IsNullOrEmpty(String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.isnullorempty?view=net-5.0#System_String_IsNullOrEmpty_System_String_)                                                                                         | Indicates whether the specified string is `null` or an empty string ("").                                                                                                                                                                                                                                                            |
| [IsNullOrWhiteSpace(String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.isnullorwhitespace?view=net-5.0#System_String_IsNullOrWhiteSpace_System_String_)                                                                          | Indicates whether a specified string is `null`, empty, or consists only of white-space characters.                                                                                                                                                                                                                                   |
| [Join(Char, Object\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.join?view=net-5.0#System_String_Join_System_Char_System_Object___)                                                                                            | Concatenates the string representations of an array of objects, using the specified separator between each member.                                                                                                                                                                                                                   |
| [Join(Char, String\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.join?view=net-5.0#System_String_Join_System_Char_System_String___)                                                                                            | Concatenates an array of strings, using the specified separator between each member.                                                                                                                                                                                                                                                 |
| [Join(Char, String\[\], Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.join?view=net-5.0#System_String_Join_System_Char_System_String___System_Int32_System_Int32_)                                                    | Concatenates an array of strings, using the specified separator between each member, starting with the element in `value` located at the `startIndex` position, and concatenating up to `count` elements.                                                                                                                            |
| [Join(String, IEnumerable\<String>)](https://docs.microsoft.com/en-us/dotnet/api/system.string.join?view=net-5.0#System_String_Join_System_String_System_Collections_Generic_IEnumerable_System_String__)                                        | Concatenates the members of a constructed [IEnumerable\<T>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1?view=net-5.0) collection of type [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0), using the specified separator between each member.               |
| [Join(String, Object\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.join?view=net-5.0#System_String_Join_System_String_System_Object___)                                                                                        | Concatenates the elements of an object array, using the specified separator between each element.                                                                                                                                                                                                                                    |
| [Join(String, String\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.join?view=net-5.0#System_String_Join_System_String_System_String___)                                                                                        | Concatenates all the elements of a string array, using the specified separator between each element.                                                                                                                                                                                                                                 |
| [Join(String, String\[\], Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.join?view=net-5.0#System_String_Join_System_String_System_String___System_Int32_System_Int32_)                                                | Concatenates the specified elements of a string array, using the specified separator between each element.                                                                                                                                                                                                                           |
| [LastIndexOf(Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.lastindexof?view=net-5.0#System_String_LastIndexOf_System_Char_)                                                                                                   | Reports the zero-based index position of the last occurrence of a specified Unicode character within this instance.                                                                                                                                                                                                                  |
| [LastIndexOf(Char, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.lastindexof?view=net-5.0#System_String_LastIndexOf_System_Char_System_Int32_)                                                                               | Reports the zero-based index position of the last occurrence of a specified Unicode character within this instance. The search starts at a specified character position and proceeds backward toward the beginning of the string.                                                                                                    |
| [LastIndexOf(Char, Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.lastindexof?view=net-5.0#System_String_LastIndexOf_System_Char_System_Int32_System_Int32_)                                                           | Reports the zero-based index position of the last occurrence of the specified Unicode character in a substring within this instance. The search starts at a specified character position and proceeds backward toward the beginning of the string for a specified number of character positions.                                     |
| [LastIndexOf(String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.lastindexof?view=net-5.0#System_String_LastIndexOf_System_String_)                                                                                               | Reports the zero-based index position of the last occurrence of a specified string within this instance.                                                                                                                                                                                                                             |
| [LastIndexOf(String, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.lastindexof?view=net-5.0#System_String_LastIndexOf_System_String_System_Int32_)                                                                           | Reports the zero-based index position of the last occurrence of a specified string within this instance. The search starts at a specified character position and proceeds backward toward the beginning of the string.                                                                                                               |
| [LastIndexOf(String, Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.lastindexof?view=net-5.0#System_String_LastIndexOf_System_String_System_Int32_System_Int32_)                                                       | Reports the zero-based index position of the last occurrence of a specified string within this instance. The search starts at a specified character position and proceeds backward toward the beginning of the string for a specified number of character positions.                                                                 |
| [LastIndexOfAny(Char\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.lastindexofany?view=net-5.0#System_String_LastIndexOfAny_System_Char___)                                                                                    | Reports the zero-based index position of the last occurrence in this instance of one or more characters specified in a Unicode array.                                                                                                                                                                                                |
| [LastIndexOfAny(Char\[\], Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.lastindexofany?view=net-5.0#System_String_LastIndexOfAny_System_Char___System_Int32_)                                                                | Reports the zero-based index position of the last occurrence in this instance of one or more characters specified in a Unicode array. The search starts at a specified character position and proceeds backward toward the beginning of the string.                                                                                  |
| [LastIndexOfAny(Char\[\], Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.lastindexofany?view=net-5.0#System_String_LastIndexOfAny_System_Char___System_Int32_System_Int32_)                                            | Reports the zero-based index position of the last occurrence in this instance of one or more characters specified in a Unicode array. The search starts at a specified character position and proceeds backward toward the beginning of the string for a specified number of character positions.                                    |
| [PadLeft(Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.padleft?view=net-5.0#System_String_PadLeft_System_Int32_)                                                                                                             | Returns a new string that right-aligns the characters in this instance by padding them with spaces on the left, for a specified total length.                                                                                                                                                                                        |
| [PadLeft(Int32, Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.padleft?view=net-5.0#System_String_PadLeft_System_Int32_System_Char_)                                                                                           | Returns a new string that right-aligns the characters in this instance by padding them on the left with a specified Unicode character, for a specified total length.                                                                                                                                                                 |
| [PadRight(Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.padright?view=net-5.0#System_String_PadRight_System_Int32_)                                                                                                          | Returns a new string that left-aligns the characters in this string by padding them with spaces on the right, for a specified total length.                                                                                                                                                                                          |
| [PadRight(Int32, Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.padright?view=net-5.0#System_String_PadRight_System_Int32_System_Char_)                                                                                        | Returns a new string that left-aligns the characters in this string by padding them on the right with a specified Unicode character, for a specified total length.                                                                                                                                                                   |
| [Remove(Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.remove?view=net-5.0#System_String_Remove_System_Int32_)                                                                                                                | Returns a new string in which all the characters in the current instance, beginning at a specified position and continuing through the last position, have been deleted.                                                                                                                                                             |
| [Remove(Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.remove?view=net-5.0#System_String_Remove_System_Int32_System_Int32_)                                                                                            | Returns a new string in which a specified number of characters in the current instance beginning at a specified position have been deleted.                                                                                                                                                                                          |
| [Replace(Char, Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.replace?view=net-5.0#System_String_Replace_System_Char_System_Char_)                                                                                             | Returns a new string in which all occurrences of a specified Unicode character in this instance are replaced with another specified Unicode character.                                                                                                                                                                               |
| [Replace(String, String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.replace?view=net-5.0#System_String_Replace_System_String_System_String_)                                                                                     | Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string.                                                                                                                                                                                              |
| [StartsWith(Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.startswith?view=net-5.0#System_String_StartsWith_System_Char_)                                                                                                      | Determines whether this string instance starts with the specified character.                                                                                                                                                                                                                                                         |
| [StartsWith(String)](https://docs.microsoft.com/en-us/dotnet/api/system.string.startswith?view=net-5.0#System_String_StartsWith_System_String_)                                                                                                  | Determines whether the beginning of this string instance matches the specified string.                                                                                                                                                                                                                                               |
| [Substring(Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.substring?view=net-5.0#System_String_Substring_System_Int32_)                                                                                                       | Retrieves a substring from this instance. The substring starts at a specified character position and continues to the end of the string.                                                                                                                                                                                             |
| [Substring(Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.substring?view=net-5.0#System_String_Substring_System_Int32_System_Int32_)                                                                                   | Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.                                                                                                                                                                                                         |
| [ToCharArray()](https://docs.microsoft.com/en-us/dotnet/api/system.string.tochararray?view=net-5.0#System_String_ToCharArray)                                                                                                                    | Copies the characters in this instance to a Unicode character array.                                                                                                                                                                                                                                                                 |
| [ToCharArray(Int32, Int32)](https://docs.microsoft.com/en-us/dotnet/api/system.string.tochararray?view=net-5.0#System_String_ToCharArray_System_Int32_System_Int32_)                                                                             | Copies the characters in a specified substring in this instance to a Unicode character array.                                                                                                                                                                                                                                        |
| [ToLower()](https://docs.microsoft.com/en-us/dotnet/api/system.string.tolower?view=net-5.0#System_String_ToLower)                                                                                                                                | Returns a copy of this string converted to lowercase.                                                                                                                                                                                                                                                                                |
| [ToLowerInvariant()](https://docs.microsoft.com/en-us/dotnet/api/system.string.tolowerinvariant?view=net-5.0#System_String_ToLowerInvariant)                                                                                                     | Returns a copy of this [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) object converted to lowercase using the casing rules of the invariant culture.                                                                                                                                               |
| [ToString()](https://docs.microsoft.com/en-us/dotnet/api/system.string.tostring?view=net-5.0#System_String_ToString)                                                                                                                             | Returns this instance of [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0); no actual conversion is performed.                                                                                                                                                                                        |
| [ToUpper()](https://docs.microsoft.com/en-us/dotnet/api/system.string.toupper?view=net-5.0#System_String_ToUpper)                                                                                                                                | Returns a copy of this string converted to uppercase.                                                                                                                                                                                                                                                                                |
| [ToUpperInvariant()](https://docs.microsoft.com/en-us/dotnet/api/system.string.toupperinvariant?view=net-5.0#System_String_ToUpperInvariant)                                                                                                     | Returns a copy of this [String](https://docs.microsoft.com/en-us/dotnet/api/system.string?view=net-5.0) object converted to uppercase using the casing rules of the invariant culture.                                                                                                                                               |
| [Trim()](https://docs.microsoft.com/en-us/dotnet/api/system.string.trim?view=net-5.0#System_String_Trim)                                                                                                                                         | Removes all leading and trailing white-space characters from the current string.                                                                                                                                                                                                                                                     |
| [Trim(Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.trim?view=net-5.0#System_String_Trim_System_Char_)                                                                                                                        | Removes all leading and trailing instances of a character from the current string.                                                                                                                                                                                                                                                   |
| [Trim(Char\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.trim?view=net-5.0#System_String_Trim_System_Char___)                                                                                                                  | Removes all leading and trailing occurrences of a set of characters specified in an array from the current string.                                                                                                                                                                                                                   |
| [TrimEnd()](https://docs.microsoft.com/en-us/dotnet/api/system.string.trimend?view=net-5.0#System_String_TrimEnd)                                                                                                                                | Removes all the trailing white-space characters from the current string.                                                                                                                                                                                                                                                             |
| [TrimEnd(Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.trimend?view=net-5.0#System_String_TrimEnd_System_Char_)                                                                                                               | Removes all the trailing occurrences of a character from the current string.                                                                                                                                                                                                                                                         |
| [TrimEnd(Char\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.trimend?view=net-5.0#System_String_TrimEnd_System_Char___)                                                                                                         | Removes all the trailing occurrences of a set of characters specified in an array from the current string.                                                                                                                                                                                                                           |
| [TrimStart()](https://docs.microsoft.com/en-us/dotnet/api/system.string.trimstart?view=net-5.0#System_String_TrimStart)                                                                                                                          | Removes all the leading white-space characters from the current string.                                                                                                                                                                                                                                                              |
| [TrimStart(Char)](https://docs.microsoft.com/en-us/dotnet/api/system.string.trimstart?view=net-5.0#System_String_TrimStart_System_Char_)                                                                                                         | Removes all the leading occurrences of a specified character from the current string.                                                                                                                                                                                                                                                |
| [TrimStart(Char\[\])](https://docs.microsoft.com/en-us/dotnet/api/system.string.trimstart?view=net-5.0#System_String_TrimStart_System_Char___)                                                                                                   | Removes all the leading occurrences of a set of characters specified in an array from the current string.                                                                                                                                                                                                                            |
{% endtab %}
{% endtabs %}

### Boolean

A Boolean or System. Boolean type has values of either `true` or `false`.

{% tabs %}
{% tab title="Properties" %}
| **Property** | **Description**                                  |
| ------------ | ------------------------------------------------ |
| FalseString  | Represents the Boolean value `false` as a string |
| TrueString   | Represents the Boolean value `true` as a string. |
{% endtab %}

{% tab title="Functions" %}
None
{% endtab %}
{% endtabs %}

### Object

Object or System. Object variables are generic and they can hold any type of data at run-time.

#### Accessible properties

None
