× 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.



Good Afternoon!

I am writing a correction/grading program for our training department.  The
task I am trying to accomplish is to create an outfile, with one record for
each field that is wrong for a given student and account#.  The file will
contain user profile, filename, field name, account#, student answer,
correct answer (two 30A fields).

So I am trying to reduce code repetition, and use modules to simplify the
task.

For each file, I will have to
1)  Chain to the record
2)  Chain to the "model" record

Then, for each field (differing types/lengths)
1)  Check equality
2)  If unequal, set up an output record
3)  Write

I am trying to visualize a way other than having a chunk of code for each
field, one after the other.  Any advice would be greatly appreciated.

--
"Enter any 11-digit prime number to continue..."
"In Hebrew SQL, how do you use right() and left()?..." - Random Thought
"If all you have is a hammer, all your problems begin to look like nails"

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.