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



It may be also helpful if you have to handle with different languages:
Depening on the language we had to convert 0/1, *ON/*OFF into Y/N (for our
English Users), (J/N for our German users), (O/N for our French Users) and
so on.
In this way we moved whatever into a Yes-Variable and a No-Variable and used
this variable within the program (or job because the language is rarely
changed).
In our old programs we had a copy member where the initial values for the
variable were set, later we used a procedure.

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"

-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im
Auftrag von David FOXWELL
Gesendet: Thursday, 14. January 2010 15:37
An: RPG programming on the IBM i / System i
Betreff: rpg style question

Hi,

Having to regularly determine the value of flags as 'Y' or 'N', then record
it in a PF.

This means having to code

IF rules satisfied;
MyFlag = gYES;

ELSE;
MyFlag = gNO;
Endif;


Then, maybe in another module,etc

IF MyFlag <> gYES;
Don't do stuff;
ELSE;
Do stuff;
Endif

Comments?
What's the reasoning behind this method?

I'd <like> to be able to use an indicator :

MyFlag = ( rules satisfied);

Then,

IF MyFlag;
do stuff;
ELSE;
Don't Do stuff;
Endif


Thanks.

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.