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



Gurrieri Fabrizio wrote:

> the compiler stop and say that "i" isn't a valid index for TABPGM.
>
> If I rename TABPGM into PGMTAB the compiler have not any problem and all
> works fine.

In RPG, by definition, if it begins with the letters "TAB" it is a
table, not an array.  You cannot reference individual elements of a
table, except after a successful LOOKUP.  (And then you don't specify
the element, the successful LOOKUP indicates which element.  You just
reference the table name and it 'knows' which one.  Magic.)

That's why when you named it PGMTAB it worked.  You could name it TBLPGM
and it would work also.

--
-Jeff

New email address: jlcrosby@dilgardfoods.com

The opinions expressed are my own and not necessarily
the opinion of my company.  Unless I say so.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.