Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This the code. This was compiled at C++ Builder 6. But not work as i expected.
C++
void __fastcall TForm1::BtnCalcularClick(TObject *Sender)
{
float x11,x12,x21,x22;
float S1,S2,epsilon;

        epsilon = StrToFloat(EdtEpsilon->Text);

        x11 = StrToFloat(EdtX11->Text);
        x12 = StrToFloat(EdtX12->Text);
        x21 = StrToFloat(EdtX21->Text);
        x22 = StrToFloat(EdtX22->Text);

        S1 = StrToFloat(EdtS1->Text);
        S2 = StrToFloat(EdtS2->Text);

When I click to "calcular button" it need to get the values of that edit's ,
but it crash when i click in. (EConvert Error "is nota valid floating point value.")
Do you have some tips to me? Thank you
Posted

1 solution

What else can I tell you than "the content of some of your edit box is not a valid floating point value" ?
 
Share this answer
 
Comments
CPallini 4-Dec-12 15:26pm    
What other vote could I give you other than 5?
YvesDaoust 4-Dec-12 15:37pm    
High 5
Sergey Alexandrovich Kryukov 4-Dec-12 18:55pm    
Well said; Captain Obvious gets another 5. :-)
--SA
Thales Maggi 4-Dec-12 15:34pm    
Oh, i'm really sorry to ask that, i'd forgot to "complete" the edit camps to test after!
Thank you for spend your time with me!
YvesDaoust 4-Dec-12 15:37pm    
You're welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900