|
Hmm.. can you just say: PrettyField = (This = That); Don't rightly know if that will work in RPG, it would work in C if PrettyField was type bool (boolean). That is logically what you are asking for. That code will never work, because the compiler can't figure out what you are trying to do (and I had to read your explanation before I figured it out :) ) What that code is saying is (If PrettyField is *On to begin with): If This=That; *On; Else; *Off; EndIf; And that makes no sense, to me or the compiler :) That the statement PrettyField; compiles is a total suprise to me. But I doubt if it actually does anything at all. Regards, Jim Langston -----Original Message----- From: rob@dekko.com [mailto:rob@dekko.com] Suppose I have the following: PrettyField is an indicator field - a type 'N'. /free if This=That; PrettyField; else; Not PrettyField; Endif; /end-free The PrettyField; compiles ok. However the Not PrettyField; does not. Should I use the PrettyField=*on; PrettyField=*off; logic, or should I hold my breath until I turn blue and hope IBM changes this? Rob Berendt
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.