Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro » dbase II problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
dbase II problem [message #72240] Sat, 25 May 2013 10:23 Go to next message
keith is currently offline  keith
Messages: 27
Registered: May 2013
Karma: 0
Junior Member
Message-ID:: <1955@seismo.UUCP>
Date: Thu, 12-Jul-84 12:58:35 EDT
Article-I.D.: seismo.1955
Posted: Thu Jul 12 12:58:35 1984
Date-Received: Sat, 14-Jul-84 00:59:39 EDT
Organization: Center for Seismic Studies, Arlington, VA
Lines: 46

I've got a dBase II program that's giving a bit of trouble.  Here's
a portion of it.  It's supposed to be a menu that reads an option entered
by the user.  As long as a valid option is entered, the program functions
correctly.  When an invalid option is entered, the program abends and
returns the user to the dBase II prompt.
=========================================================================
SET ECHO OFF
SET EXACT ON
SET TALK OFF
SET BELL OFF
SET CONFIRM OFF
SET INTENSITY OFF
STORE ' ' TO OPTION
STORE ' ' TO EXIT
ERASE
DO WHILE EXIT = 'F'
  @ 1,35 SAY 'CLASS ABCD'
  @ 3,10 SAY 'LOGIN CODE'
  .                          Format the rest of the screen.
  .
  .
READ
DO CASE
   CASE OPTION = 'K'
      DO NUCH
   CASE OPTION = 'N'
      DO COMD
   .                        Based on user entry DO some specified routine.
   .                        Now, here's where we're having problems.
   .                        It's with the OTHERWISE command:
   OTHERWISE
   ?  CHR(7)
   @ 24,3 SAY '*** INVALID OPTION ***'
ENDCASE
STORE ' ' TO OPTION
STORE 'F' TO EXIT
ENDDO
=========================================================================

I'd appreciate any help anyone can offer.  Thanks a lot.  Also, we've tried
to find some documentation to answer the problem -- and were unsuccessful.
If you have some, could you reference it?  Again, thanks.

		Keith 
			ARPA: keith@seismo 
			UUCP: seismo!keith
Re: dBASE II Problem [message #73899 is a reply to message #72240] Sun, 26 May 2013 20:20 Go to previous message
julian is currently offline  julian
Messages: 52
Registered: May 2013
Karma: 0
Member
Message-ID: <3107@ecsvax.UUCP>
Date: Wed, 15-Aug-84 19:02:22 EDT
Article-I.D.: ecsvax.3107
Posted: Wed Aug 15 19:02:22 1984
Date-Received: Sun, 19-Aug-84 01:12:28 EDT
References: tekig1.1736
Lines: 7

dBase does not save a file until the next USE is issued.  I have noticed some
erratic problems with adding new data to files, and trying to get it back immed-
iately.  A kludge to work around the problem of retrieving recently used records
is to give one or more USE commands, and re-use the original file.  The USE is
supposed to write out the file, but I say 'one or more' because it may take a
few to work.  I hopr you are not working with a canned program.  The use
command involves overhead by writing to the disk.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: this should inflame the unix philes - (nf)
Next Topic: Vector Graphics 4/30 for sale - (nf)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Mar 28 15:42:54 EDT 2024

Total time taken to generate the page: 0.10373 seconds