I'm not taking a string, making it double and then using it as a string
again.
In the database there is a field (bedrag) that is from the type varchar.
In my application I have a textbox in which the value is entered as text.
But I have to compare the database field with the textbox field if the value
is greater than, greater than or equal, ...
So I convert the database field to a double and I convert the textfield to a
double and then compare them, but the convert of the database field gives an
error:
Error converting data type varchar to numeric.
What do I have to do?
> Double.Parse(txtdocbedrag.Text).ToString( )
>
> (You are taking a string... making it a double... and then trying to
> use it as a string. Why?)