Click here to Skip to main content
13,089,618 members (47,890 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 |
Web04 | 2.8.170813.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2017
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