Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!agate!bionet!csd4.milw.wisc.edu!mailrus!purdue!decwrl!sgi!scotth@harlie.SGI.COM From: scotth@harlie.SGI.COM (Scott Henry) Newsgroups: comp.databases Subject: Re: Question about ACCELL Language Message-ID: <25465@sgi.SGI.COM> Date: 25 Jan 89 01:18:34 GMT References: <583@gould.doc.ic.ac.uk> Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 36 From article <583@gould.doc.ic.ac.uk>, by brwk@doc.ic.ac.uk (Bevis King): > I have a slight problem with an ACCELL application I am developing. > > I wish to suppress (or rather ignore) the messages that are > generated on doing a next rec (down cursor) at the last record > or a prev rec (up cursor) at the first record. The requirment > to press next form or return, rather than just get a beep > annoys me. > > Can anyone suggest a way to do this? > > Regards, Bevis What I have been doing to suppress the messages is actually very simple. You need to add the following code to your form script (.fs file): ON NEXT RECORD if current_record_num$() >= current_record_count$() then reject operation ON PREVIOUS RECORD if current_record_num$() <= 0 then reject operation and bingo! no more beep! The cursor stays on the first/last line no matter how many times you push the next/prev-record keys! > Bevis King, Systems Programmer | Email: brwk@doc.ic.ac.uk > Dept of Computing, Imperial College | UUCP : ..!mcvax!ukc!icdoc!brwk > 180 Queens Gate, London, SW7 2BZ, UK. | Voice: +44 1 589 5111 x 5085 > "Never argue with a computer" ... Avon (Blake's 7) scott henry -- Scott Henry #include