× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Better way to code a maintenence program ILERPG
  • From: "Dan Bale" <dbale@xxxxxxxxxxx>
  • Date: Tue, 8 Jun 1999 17:34:10 -0400



>>I am just trying to write a  maintenence program for a data file which has
only two fields.  I just want to know the better way of desiging that.  The user
said they dont want a main screen like to select an option 1, 2, 3, etc to avoid
back and forth.

So, I thought of designing subfile like the one at the bottom, which displays
the existing rec<<

Have you considered creating a DFU application to do this?  If you have no
editing to perform (which looks like the case here), you could save yourself a
bundle of time; it might take 15 minutes to set up.  If you have DBU on your
system, it gets even easier.

If you decide to write your own program from scratch in the manner you have
described, you need a way to keep track of the key fields' value, if you allow
them to be changed.  If you read a record with a key value of 'A', the user
changes it to 'B', you need a way to get back to record with key value of 'A' to
change it to 'B'.  Usually, this would be accomplished by storing the original
key value in a "hidden" subfile field.

Do you need to guard against duplicate keys being entered?  Many more
considerations are required to handle that.





+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.