|
I do that also, though what I'd really like is for the basic "types", such as Indicator/Boolean, Pointer, Int, LongInt, etc... to be included somehow in the compiler, so that I don't have to /COPY them into every program. Packed, zoned, and character might be problematic, but maybe they could be handled with something like: like(packed:30:9), or like(char:32), or even like(varchar:1024) for a varying length character field. Joe Lee >>> rpg400-l@xxxxxxxxxxxxxxxx 02/03/2005 12:57:26 >>> Hi James, > I think I see your point here. It may well be that the best current > solution is the one you suggest. But it appears to me that this > solution is a work around for the lack of data type definitions in RPG > (i.e. typedef). But that is RPG's fault, not yours. You can use LIKE and LIKEDS in pretty much the same way you'd use typedef in C. I do that all the time. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.