davman2002
Programmer
I am an experienced C++ Programmer but this is my first experience with Borland. I need to know how to convert a string variable to a double. This is the code that I have but it does not work
AnsiString Value1 = txtValue1->Text.ToDouble();
AnsiString Value2 = txtValue2->Text.ToDouble();
DoCalculations.Subtract(Value1,Value2);
debugger says cannot convert AnsiString to double
Please help
AnsiString Value1 = txtValue1->Text.ToDouble();
AnsiString Value2 = txtValue2->Text.ToDouble();
DoCalculations.Subtract(Value1,Value2);
debugger says cannot convert AnsiString to double
Please help