|
On Sun, 2003-11-02 at 13:55, Joe Pluta wrote: > > From: Robert Upshall > > > > Is it possible to prototype public static final fields in RPG? > > Unless I'm missing something, Robert, just define it as a type C (named > constant) in your definition statements. Since it's a global, you may > have an issue with namespace collisions, but that's about it. This > should at the very least work for numeric constants. > I want to define a String constant in this case. Doesn't that need to be some type of java object. Right now I define 2 vars, one of type c and one of type o java String, I then use the String constructor to initialize the java var with the constant as the parm to the String constructor. I am just wondering if there is a clean/more compact way of doing this. Robert > Joe > > _______________________________________________ > 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.