I am new to C# and learning as I go So I hope you can help. I am reading from SQL using a reader.

I than want to manipulate the data that was read and write to a new table

I have the read and write piece working, now I am working on the syntax of changing the value in the reader.

Example... I read in a value called onoffrange1

I now want to change its value to an int variable i have called quotient. Here is the syntax I am trying to use:

reader["onoffrange1"].ToString() = quotient1;

how do I need to change it?