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