Default Values in an Array

studio
variable

#1

Hi Everyone!!

I need to create an array variable that has default values, but I haven’t found how I can do that.

Can you help me?

Variables is: ArrrayMonths
Type: Array of strings
Default: I have this ("January,“February”,“March”,“April”…). However, It is shows an advertisement that mentions that there is an error


#2

Hi @Lucky0906,

You should use curly brackets in order to create an array.

For example: {“January”,“February”,“March”,“April”…}

Example:
Main.xaml (6.8 KB)


#3

Also, right after the word “January, there should be another double quotation mark (”). So, in this case it would be “January”.


#4

Hi,

Can you let me know how to select string[] array type in variable pane. I am faceinfg lot of issue to select data type of variable.


#5

Hi @vivekupadhyay

Variables pane: variable type -> select Array of [T] -> select the type String

Also if you click Browse for Types, you can search and select different variable types(ex. MailMessage)


#6

Thanks :slight_smile: