What went wrong with this?

Hi I need to define a lists of strings variable with the below value:
{“Germany”, “Spain”, “Japan”, “Brazil”, “India”, “China”}

but it is showing me error message below
BC30311: Value of type ‘String()’ cannot be converted to ‘List(Of String)’. The selected value is incompatible with the property type.

What does it mean?

Hello @kian.ng

You need to initialize the List.

New List(Of String){“value1”,“value2”}

Regards
Soren

HI @kian.ng, define this text as mentioned below:
New List (of String) From {“Germany”, “Spain”, “Japan”, “Brazil”, “India”, “China”}

This should solve, Thanks

Hi @kian.ng

You need to give like below

New List(Of String) From {"Germany", "Spain", "Japan", "Brazil", "India", "China"}

Regards,

@kian.ng

You can try these expression as well New List(of string) From {“Germany”,“Spain”,“Japan”,“India”,“China”}

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.