D10SZKaiXiYa/A00通用窗体/U_CJDJ.pas

40 lines
619 B
ObjectPascal
Raw Normal View History

2025-05-19 17:31:51 +08:00
unit U_CJDJ;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, DB, ADODB;
type
TfrmCJDJ = class(TForm)
Panel1: TPanel;
Button1: TButton;
Label1: TLabel;
Price: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
FFFIDS: string;
{ Public declarations }
end;
var
frmCJDJ: TfrmCJDJ;
implementation
{$R *.dfm}
procedure TfrmCJDJ.Button1Click(Sender: TObject);
begin
if StrToFloatDef(Price.Text, 0) = 0 then
Price.Text := '0';
ModalResult := 1;
end;
end.