Hi:
Newby Question:
I have the following code in a class library that performs a query on an SQL
database and is returning a class that contains "locatestat us":
if (p_locatestatus .Value != System.DBNull.V alue)
{ rtrec.locatesta tus = (char)p_locates tatus.Value; };
rtrec.locatesta tus is a char.
This compiles just fine however it causes an error and is trapped by my
try/catch everytime. There must be something that I need to do to convert a
char - all other types are converting just fine.
Any info on the steps I'm missing would be greatly appreciated!
Thanks,
Fred
Newby Question:
I have the following code in a class library that performs a query on an SQL
database and is returning a class that contains "locatestat us":
if (p_locatestatus .Value != System.DBNull.V alue)
{ rtrec.locatesta tus = (char)p_locates tatus.Value; };
rtrec.locatesta tus is a char.
This compiles just fine however it causes an error and is trapped by my
try/catch everytime. There must be something that I need to do to convert a
char - all other types are converting just fine.
Any info on the steps I'm missing would be greatly appreciated!
Thanks,
Fred
Comment