An end of an expression was expected

I don’t understand why I get this
the month variable is a “string array”
and in the other field use this (“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, "November “,” December ")

but I get expected end of expression, if it’s okay, I don’t understand
Is there a way to fix it?
thank you

if Months variable is a array or list variable then the assign should be like this

if its a array
Months = {“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November “,” December”}

if its a list
Months = New List(of string) from {“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November “,” December”}

Cheers @borismh

1 Like

Yeah, in .net an array is surrounded by squiggly brackets {}
Also, I recommend instead of setting an array of months, you can get this array an easier way.
Check these search results:

This way, you don’t need to hardcode all the months in there.


1 Like

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