× 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: how to let my program sleep a while
  • From: Jon.Paris@xxxxxx
  • Date: Wed, 20 Sep 2000 13:19:04 -0400


 >> Are these added lines of code just to prevent having to define a field
as *HMS in a prototype?

Absolutely nothing to do with it.

I was responding to Jim's comment about placing constant definitions in a
prototype /COPY member.  The problem with that is the potential for
duplication.

For example, you might choose to have a constant named OK, or Error or
SevereError etc.  If you include them in the prototype member directly,
then you had better put _every_ prototype in one file.  If you don't then
sure as eggs are eggs, one of these days you'll enhance a program and need
to copy in another set of protos.  If that set _also_ includes the same
constants now RPG will get upset because of duplicate names.

So - I was suggesting that the constants be in a separate /COPY member
which is included within each /COPY proto member that needs them.  Within
the constants member, you use conditional compilation directives to ensure
that if you've already copied in the constants once you don't do it again.

I can send you an example if you like - just e-mail me directly.

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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.