[comp.lang.pascal] Code optimization

jm@psgdc (James Moore) (07/06/90)

I'm looking for a good way to do field editing and selection in Turbo.

I have a database with records containing 30-50 fields, I would like 
a quick routine which would display the records (that's easy enough),
the allow me to move between field using the arrow keys and use a function
key to edit and change any field.  I've already got code that does this, but
it seems bulky and awkward.....I keep a counter of the current position,
and do a case statement for correct data element and screen positioning.
Sure, it works.  But damn, I started using Pascal to avoid the clumsiness
of BASIC.  My program seems clumsy.  Any ideas on how to streamline this?


----------------------------------------------------------------------------
James Moore
Systems Analyst
CDI-PSG  Vienna, Virginia
(703)-761-1163
...!uunet!psgdc!jm