User-defined variables
Creating a variable using the Variables window
You need to have a robot open to use the Variables window.
Click Add/Modify button on the Variables pane. The Variables window will appear.
Click the new button and select the type of the variable to create a variable.
Type name and value and click save.
The initial value depends on the selected variable type. If there is a mismatch between type and value, an error will be shown.

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.
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.
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.
String
A string value stores text information as a collection of characters.
Property
Description
Length
Gets the number of characters
Function
Description
Compares substrings of two specified String objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order.
Compares two specified String objects and returns an integer that indicates their relative position in the sort order.
Compares two specified String objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order.
Compares this instance with a specified String object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified string.
Concatenates the members of a constructed IEnumerable<T> collection of type String.
Creates the string representation of a specified object.
Concatenates the string representations of two specified objects.
Concatenates the string representations of three specified objects.
Concatenates the string representations of the elements in a specified Object array.
Concatenates two specified instances of String.
Concatenates three specified instances of String.
Concatenates four specified instances of String.
Concatenates the elements of a specified String array.
Returns a value indicating whether a specified character occurs within this string.
Returns a value indicating whether a specified substring occurs within this string.
Determines whether the end of this string instance matches the specified character.
Determines whether the end of this string instance matches the specified string.
Determines whether this instance and a specified object, which must also be a String object, have the same value.
Determines whether this instance and another specified String object have the same value.
Determines whether two specified String objects have the same value.
Replaces one or more format items in a string with the string representation of a specified object.
Replaces the format items in a string with the string representation of two specified objects.
Replaces the format items in a string with the string representation of three specified objects.
Replaces the format item in a specified string with the string representation of a corresponding object in a specified array.
Reports the zero-based index of the first occurrence of the specified Unicode character in this string.
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.
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.
Reports the zero-based index of the first occurrence of the specified string in this instance.
Reports the zero-based index of the first occurrence of the specified string in this instance. The search starts at a specified character position.
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.
Reports the zero-based index of the first occurrence in this instance of any character in a specified array of Unicode characters.
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.
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.
Returns a new string in which a specified string is inserted at a specified index position in this instance.
Indicates whether the specified string is null
or an empty string ("").
Indicates whether a specified string is null
, empty, or consists only of white-space characters.
Concatenates the string representations of an array of objects, using the specified separator between each member.
Concatenates an array of strings, using the specified separator between each member.
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.
Concatenates the members of a constructed IEnumerable<T> collection of type String, using the specified separator between each member.
Concatenates the elements of an object array, using the specified separator between each element.
Concatenates all the elements of a string array, using the specified separator between each element.
Concatenates the specified elements of a string array, using the specified separator between each element.
Reports the zero-based index position of the last occurrence of a specified Unicode character within this instance.
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.
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.
Reports the zero-based index position of the last occurrence of a specified string within this instance.
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.
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.
Reports the zero-based index position of the last occurrence in this instance of one or more characters specified in a Unicode array.
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.
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.
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.
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.
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.
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.
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.
Returns a new string in which a specified number of characters in the current instance beginning at a specified position have been deleted.
Returns a new string in which all occurrences of a specified Unicode character in this instance are replaced with another specified Unicode character.
Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string.
Determines whether this string instance starts with the specified character.
Determines whether the beginning of this string instance matches the specified string.
Retrieves a substring from this instance. The substring starts at a specified character position and continues to the end of the string.
Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.
Copies the characters in this instance to a Unicode character array.
Copies the characters in a specified substring in this instance to a Unicode character array.
Returns a copy of this string converted to lowercase.
Returns a copy of this String object converted to lowercase using the casing rules of the invariant culture.
Returns this instance of String; no actual conversion is performed.
Returns a copy of this string converted to uppercase.
Returns a copy of this String object converted to uppercase using the casing rules of the invariant culture.
Removes all leading and trailing white-space characters from the current string.
Removes all leading and trailing instances of a character from the current string.
Removes all leading and trailing occurrences of a set of characters specified in an array from the current string.
Removes all the trailing white-space characters from the current string.
Removes all the trailing occurrences of a character from the current string.
Removes all the trailing occurrences of a set of characters specified in an array from the current string.
Removes all the leading white-space characters from the current string.
Removes all the leading occurrences of a specified character from the current string.
Removes all the leading occurrences of a set of characters specified in an array from the current string.
Boolean
A Boolean or System. Boolean type has values of either true
or false
.
Property
Description
FalseString
Represents the Boolean value false
as a string
TrueString
Represents the Boolean value true
as a string.
None
Object
Object or System. Object variables are generic and they can hold any type of data at run-time.
Accessible properties
None
Last updated