Page 1 of 1

Compiler can't convert from String to int but it should

Posted: Thu Nov 28, 2013 10:17 pm
by theregister
I'm using this Choose function, and as far as I understand, it will take my month variable as index, and depending on its value it will print any of the positions of the function, but it gives me that error, I don't know why, any ideas?

Code: Select all

Choose(Month,"1","2","3","4","5","6","7","8","9","10","11","12").ToString()

Re: Compiler can't convert from String to int but it should

Posted: Fri Nov 29, 2013 6:26 am
by Alex K.
Hello,

Can you please send us a sample report which reproduce the issue for analysis.

Thank you.