316______________________________________________ 4

     (,     -
,  -  ),     StrToFloat -
   EConvertError.   -
         .
         
(  EZeroDivide).   ,  -
  catch  ,      -
 :       -
 .

  ,       15. -
       ,
    .      
catch     . ,  EZeroDivi-
de (   ), EOverflow (  
), EInvalidArgument (    )  -
       EMathError. 
        catch, , :

catch(EMathErrors)
(
Application->MessageBox(" ",

" ", _);

)

,        .
,   ,    -
.     Message,    -
,      .

   ,     catch
    ,       
 .           .
        -'-
,   EMathError:

catch(EMathError& E)

{                                                                                                                             ;

AnsiString S = "  : ";

if(E.Message == "EZeroDivide") S += "  ";

if(E.Message == "EOverflow") S += "";

if(E.Message == "EInvalidArgument") S += " ";

Application->MessageBox(S.c_str (), " ", _) ;

}

           :'
      ,      ;

 Message    .

   ,   ,  catch  -
     :

catch (...)
(
ShowMessage(" .");

)

 catch(.)       catch,    
 , ,  .    '
 ,   ,   ,   
C++Builder   .   catch(...)   ,  
      : The handler must be \.,
('...'   ).