home *** CD-ROM | disk | FTP | other *** search
- unit Entry;
-
- { Program copyright (c) 1995 by Charles Calvert }
- { Project Name: LINKLST2 }
-
- interface
-
- uses
- WinTypes, WinProcs, Classes,
- Graphics, Forms, Controls,
- StdCtrls, Buttons, MakeData,
- SysUtils;
-
- type
- TEntryForm = class(TForm)
- Edit1: TEdit;
- Edit2: TEdit;
- Edit3: TEdit;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- BitBtn1: TBitBtn;
- BitBtn2: TBitBtn;
- private
- { Private declarations }
- public
- function Add(var Current: PMyNode): Boolean;
- end;
-
- var
- EntryForm: TEntryForm;
-
- implementation
-
- {$R *.DFM}
-
- function TEntryForm.Add(var Current: PMyNode): Boolean;
- begin
- if ShowModal = mrOk then begin
- Current^.Name := Edit1.Text;
- Current^.Flight := StrToInt(Edit2.Text);
- Current^.Day := Edit3.Text;
- Result := True
- end else
- Result := False;
- end;
-
- end.
-