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



Would it be possible to use a file for your constants that you don't want changed?
Other than that, I like Jon's suggestion to not name the parts of the DS. Makes it harder to maintain though.

Dave B

Kurt Anderson <kurt.anderson@xxxxxxxxxxxxxx> 04/14/09 10:38 AM >>>

Bummer.

Constants are great. But it kind of sucks that we can only have simple variables as constants. If IBM (er, Barbara) added the ability to restrict any data structure as read-only, I can say I would use this functionality far more than some other handy but more situational enhancements (such as %trim of characters - a great tool to have, but not something (I) used commonly).

Just a request from a lover of RPG.

-Kurt Anderson
Ps. Ok, so aside from dreaming on the midrange list, is there an official box to drop my suggestions in? I have a bunch for wdsc as well (one's even related to constants).


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Friday, April 10, 2009 3:17 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Data Structure Constant


On 10-Apr-09, at 2:53 PM, rpg400-l-request@xxxxxxxxxxxx wrote:

Thoughts on creating a data structure constant?

No ways that I can think of I'm afraid. The closest I have come is to
use unnamed fields in the initial DS. e.g.

D MyDS DS
D 10a Inz('ABCDEFGHIJ')
D 5i 0 Inz(25)
D etc...

At least it can only be screwed up by moving stuff to the DS name!


Jon Paris

www.Partner400.com
www.SystemiDeveloper.com







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.