Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++
This the code. This was compiled at C++ Builder 6. But not work as i expected.
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 4-Dec-12 9:59am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

What else can I tell you than "the content of some of your edit box is not a valid floating point value" ?
CPallini at 4-Dec-12 15:26pm
What other vote could I give you other than 5?
YvesDaoust at 4-Dec-12 15:37pm
High 5
Sergey Alexandrovich Kryukov at 4-Dec-12 18:55pm
Well said; Captain Obvious gets another 5. :-)
Thales Maggi at 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 at 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)

Advertise | Privacy | Mobile
Web02 | 2.8.150326.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100