🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.databases
1 messages
1 total messages Started by Mark Folse Thu, 06 Aug 1992 17:09
Nested CASE statements?
#115
Author: 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?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads