Click here to Skip to main content
12,547,922 members (48,161 online)
Rate this:
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 8: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 4-Dec-12 15:26pm
What other vote could I give you other than 5?
YvesDaoust 4-Dec-12 15:37pm
High 5
Well said; Captain Obvious gets another 5. :-)
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2016
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