× 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: Critique requested for my first MI program
  • From: "JeanMichel" <jmpenasse@xxxxxxxxxxx>
  • Date: Thu, 2 Mar 2000 10:19:33 +0100

Douglas,


>The hardest part was figuring out how to handle a variable number of
>entry parms -- all of the samples posted to this list so far used a
>fixed number AFAIK.
>

You've found the right way !

>Question:  Is using RTX * similar to exiting with LR on or off?  Does
>it even matter when the code has no initialization routines or files
>to open?

RTX * is similar to RT on/RETRN. RTX terminates the current "Invocation".
DEACTPG * is similar to LR : it terminates the program "Activation"

When you first call a MI pgm (or any OPM one) you implicitly activate it
(ACTPG) *AND* invoke it. It means that until you use DEACTPG your pgm is
still activated and its statics data are keeped from calls to calls.
Invocation lets you use these statics data (scope is current activation, its
something like global variable) and use automatic data which are something
like local variable (the scope is the current invocation). You define your
pgm data (scalar or pointers) as automatic by adding the AUTO keyword.
Without this keyword pgm data are implicitly STATIC.


HTH

Jean-Michel Penasse
EXPERIA Europe
jmpenasse@experia.com
www.experia.com



+---
| This is the MI Programmers Mailing List!
| To submit a new message, send your mail to MI400@midrange.com.
| To subscribe to this list send email to MI400-SUB@midrange.com.
| To unsubscribe from this list send email to MI400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: dr2@cssas400.com
+---

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.