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



On Mon, Jun 23, 2008 at 12:09 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:
I am not sure I understand the issue? In RPG I would use an F-spec for
each file I want to use. There is no more to it than that, so far as I
understand your question? The fields from that file are then available
to use as you wish.

Is there any language that just knows what files you want to use, with
no need to define, open, or close them? ?

sure, just create a class for each file. Then have methods for each
class for reading, writing, positioning in the file. And properties
for each field in the file.
CustMasterFile cm = new CustMasterFile( ) ;
cm.Chain( key1, key2 ) ;
Console.Write( "Customer name: " + cm.CustName ) ;

In your class you could code a Dispose method that would close the
file. The "Chain" method could automatically open the file. In C# the
"using" statement calls the Dispose method at the end of the using
block of code.

this code would automatically open and close the file for you:

using( CustMasterFile cm = new CustMasterFile( ))
{
cm.Chain( key1, key2 ) ;
Console.Write( "Customer name: " + cm.CustName ) ;
}

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.