Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ames!ubvax!mrspoc!itkin From: itkin@mrspoc.UUCP (Steven M. List) Newsgroups: comp.databases Subject: Re: Question about ACCELL Language Message-ID: <4428@mrspoc.UUCP> Date: 29 Jan 89 20:45:42 GMT References: <583@gould.doc.ic.ac.uk> Reply-To: itkin@mrspoc (Steven List) Organization: Transact Software, Inc., Mt. View, CA Lines: 32 In article <583@gould.doc.ic.ac.uk> brwk@doc.ic.ac.uk (Bevis King) writes: > 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? ON NEXT RECORD if current_record_num$() = current_record_count$() then begin reject operation end ON PREVIOUS RECORD if current_record_num$() = 1 then begin reject operation end Note that with a little thought and a couple of flags and the use of the "BEFORE FIELD" section for the first field in the record/form, you can make your multi-occurrence forms circular (like ACCELL menus). That is, you can make NEXT RECORD on the last record go to the first record and vice versa. -- : Steven List @ Transact Software, Inc. : {apple,coherent,limbo,mips,pyramid,ubvax}!mrspoc!itkin : Voice: (415) 961-6112