40 lines
720 B
ObjectPascal
40 lines
720 B
ObjectPascal
|
unit U_InputBoxCoefficient;
|
||
|
|
||
|
interface
|
||
|
|
||
|
uses
|
||
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||
|
Dialogs, StdCtrls, ExtCtrls, DB, ADODB;
|
||
|
|
||
|
type
|
||
|
TfrmInputBoxCoefficient = class(TForm)
|
||
|
Panel1: TPanel;
|
||
|
Button1: TButton;
|
||
|
Conversion: TEdit;
|
||
|
RuleConversion: TComboBox;
|
||
|
procedure Button1Click(Sender: TObject);
|
||
|
private
|
||
|
{ Private declarations }
|
||
|
public
|
||
|
FFFIDS: string;
|
||
|
{ Public declarations }
|
||
|
end;
|
||
|
|
||
|
var
|
||
|
frmInputBoxCoefficient: TfrmInputBoxCoefficient;
|
||
|
|
||
|
implementation
|
||
|
|
||
|
{$R *.dfm}
|
||
|
|
||
|
procedure TfrmInputBoxCoefficient.Button1Click(Sender: TObject);
|
||
|
begin
|
||
|
if StrToFloatDef(Conversion.Text, 0) = 0 then
|
||
|
Conversion.Text := '0';
|
||
|
|
||
|
ModalResult := 1;
|
||
|
end;
|
||
|
|
||
|
end.
|
||
|
|