G
Guest
How do I assign a value in a dataset to a variable. I have the following
code that's giving me an error message:
char IsTaxable;
IsTaxable = dsTaxData.Tables["ShipTo"].Rows[0]["is_taxable"];
The is_taxable datatype is string and the error message that I'm receiving
is "Cannot implicitly convert type 'object' to 'char'.
I'm a rookie and not sure how to assign the value of my variable. Any help
would be appreciated as I have 5 result sets that with several columns that I
need to assign to variables in my business objects.
code that's giving me an error message:
char IsTaxable;
IsTaxable = dsTaxData.Tables["ShipTo"].Rows[0]["is_taxable"];
The is_taxable datatype is string and the error message that I'm receiving
is "Cannot implicitly convert type 'object' to 'char'.
I'm a rookie and not sure how to assign the value of my variable. Any help
would be appreciated as I have 5 result sets that with several columns that I
need to assign to variables in my business objects.