🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.database
Article #285

Help for a BASIC beginner

#285
From: Z Master
Date: Thu, 11 Sep 1986 10:33
19 lines
2139 bytes
I'm writing a relatively large (38K) data base system for my home computer,  
which I hope to market (I hope so anywway, after all, I'm an ameteur) to intr-
ested users. I have written most of the inputting routines, and have constructedthe file which contains 16 fields, including 1 keyfield, and a record number  
which DOS needs anyway (so its a bonus I guess). What I have come across now is
a mystery which nobody I know can help me with (maybe, they are just not intrested). My problem is: the user must be able to key in up to 16 entries into those
field (ie 16 of them) plus provide any logic associated with finding any/all
entries which have been entered. For example, the person might enter Alex into  name field, Perth into city field, and Male or Female into sex field.
I'm programming the whole thing in BASIC which provide nice text formatting 
fascilities, which will later be compiled. How should the logic behind the 
searching for those field be done. I'm able to search for all fields, but the   user might only want to use certain fields, like the example above. I mean- how would the program know whether 1 or all 16 fields have been entered into, in
other words the code which remains constant must check for something in all 
there are 16! combinations so obviously I can make a routine which will take 
care of all combinations.
So how should it be done?
I realise that my question might seem amateur, but even amateurs deserve some
questions answered.
	I would be grateful for any form of reply.
					dokas1.swanee.oz (or just look above)
 
Technical Details
Message-ID: <267@swanee.OZ>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!qantel!lll-lcc!lll-crg!seismo!munnari!moncskermit!basser!wacsvax!swanee!dokas1

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!qantel!lll-lcc!lll-crg!seismo!munnari!moncskermit!basser!wacsvax!swanee!dokas1
From: dokas1@swanee.OZ (Z Master)
Newsgroups: net.database
Subject: Help for a BASIC beginner
Message-ID: <267@swanee.OZ>
Date: Thu, 11-Sep-86 06:33:14 EDT
Article-I.D.: swanee.267
Posted: Thu Sep 11 06:33:14 1986
Date-Received: Sun, 28-Sep-86 21:26:47 EDT
Organization: El. & El. Eng., Uni. of Western Australia
Lines: 19
Keywords: Basic, Searching with logic, How?