home *** CD-ROM | disk | FTP | other *** search
- unit DQ;
-
- interface
- uses Crt, Def, ColorDef, ShowPagU, DelRec, SetBU, RE, FastWr,
- GetForU, StrnU, UCasU, StriU;
- procedure DeleteQuery(var ActionTaken: boolean; RecordNum: integer);
-
- implementation
-
- procedure DeleteQuery;
- var Query: S30;
- AllowInput,
- Waste: boolean;
- AllowControl: integer;
- begin
- SetBG;
- clrscr;
- AllowControl := -1;
- AllowInput := true;
- ActionTaken := false;
- GetRec(Entry,RecordNum);
- ShowPage;
- FastWrite( 'Type DEL and hit [ENTER] to delete !', 18, 1,
- (Msgs.Attr or $0008));
- FastWrite( 'Strike [ENTER] to exit !', 19, 1, (Msgs.Attr or $0008));
- Query := GetForm( 1, 20, 4, Strng(4,#32), '', AllowControl, AllowInput,
- Inputs.Attr, [#31..#126]);
- SetBG;
- if UCase(Strip(Query)) = 'DEL' then
- begin
- DeleteRecord(RecordNum);
- ActionTaken := true;
- end;
- clrscr;
- end;
-
- end.
-