D
Daniel Groh
I'm facing this error:
Error Message:Specified cast is not valid.
this line:
char chrTipoPessoa = (char)sqlCmd.ExecuteScalar();
It should returns the letter "F" or "J"!
but with (string) it works normal...I already checked and there's no space!
Why I'm getting this error when I try to cast as char ?
Error Message:Specified cast is not valid.
this line:
char chrTipoPessoa = (char)sqlCmd.ExecuteScalar();
It should returns the letter "F" or "J"!
but with (string) it works normal...I already checked and there's no space!
Why I'm getting this error when I try to cast as char ?