🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.databases
Article #115

Nested CASE statements?

#115
From: Mark Folse
Date: Thu, 06 Aug 1992 17:09
13 lines
1421 bytes
Are nested CASE statements allowed in FoxBASE+/Mac?  I have a long bit
of code which takes text options from scrolling windows and translates
them into an alpha code which the database uses to organize the dbf.
After the user selects a County from a scrolling window, the code runs a
DO CASE until it reaches the CASE for that county's code. It then
produces a second text window with localities to select from.  Aftet
selecting a locality, a nested CASE statement should return an appropriate
code for that locality.  But it doesn't.  After exiting the primary
CASE statement, the code merrily runs along and successfully returns
the remaining codes (in this case, ward and precinct).  But it just
will not return the two digit alpha code for the locality from the
nexted CASE statement.  Is there another way to do this? Do I have to do a
sub array (as in a menu program) in lieu of the nested CASE statements?
Technical Details
Message-ID: <1992Aug6.170921.14606@msuinfo.cl.msu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!msuinfo!crs.cl.msu.edu!folse

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac.databases
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!msuinfo!crs.cl.msu.edu!folse
From: folse@crs.cl.msu.edu (Mark Folse)
Subject: Nested CASE statements?
Message-ID: <1992Aug6.170921.14606@msuinfo.cl.msu.edu>
Keywords: FoxBASE+/MAC
Sender: news@msuinfo.cl.msu.edu
Reply-To: folse@crs.cl.msu.edu.UUCP (Mark Folse)
Organization: U.S. Congress (don't blame me, I just work here)
Date: Thu, 6 Aug 92 17:09:21 GMT
Lines: 13