I am trying to store an arrary of strings for each month and then have it give me that month back in an email

I have an input for a Period that will give me numbers 1 through 12 and I am trying to create a variable that stores all of the months and then will use the period to give me the correct month with the MonthName variable…

Period variable - integer
Month List - Jan, Feb, March etc
MonthName will be (Montlist(Period-1)

I created a message box but it just keeps returning System.String or System.String[6-1]

Hi,

returning System.String[]

It’s necessary to convert string array to string using Join method etc. in Messagebox.

System.String[6-1]

Probably, it’s necessary to input the expression in Expression Editor.

So, can you try the following sample?

NewBlankTask20251015-1.zip (50 KB)

FYI, in this case, New DateTime(Now.Year, 6 , 1).ToString("MMMM") will also work.

Regards,