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

Stimulsoft Reports.NET discussion
Post Reply
theregister
Posts: 53
Joined: Wed Nov 27, 2013 5:24 pm

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

Post 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()
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

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

Post by Alex K. »

Hello,

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

Thank you.
Post Reply