R
RP
I have a routine that returns one column value in string. This time I
need to get total records in a table. So this routine is returning it
in string. I want to convert this value to an appropriate data type
that can be set as a maximum value for progress bar.
I tried:
progressBar1.Maximum = Convert.ToInt64(FoundVal)
but it is not working. It generates error:
"Error 10 Cannot implicitly convert type 'long' to 'int'. An explicit
conversion exists (are you missing a cast?)"
need to get total records in a table. So this routine is returning it
in string. I want to convert this value to an appropriate data type
that can be set as a maximum value for progress bar.
I tried:
progressBar1.Maximum = Convert.ToInt64(FoundVal)
but it is not working. It generates error:
"Error 10 Cannot implicitly convert type 'long' to 'int'. An explicit
conversion exists (are you missing a cast?)"