|
Jim, and others, the PrettyField = (This = That) would work. Although I am sure it would drive others here nuts to maintain it. That in itself would give me a kick :-) Also, I determined that PrettyField; did NOT compile. It thought it was a subprocedure but could not find a prototype. I thought that I'd have to do a PrettyField(); if this was a subprocedure, but I guess not. I'm glad that Joel now realizes that there is an boolean indicator variable - type N. I thought I had that in my original post. Joel, hopefully this makes sense as to why some people use pointers to base named indicators over regular indicators D Highlight s N based(%addr(*in01)) D PositionCur s N based(%addr(*in02)) And there is no way I am going to rename *on to True and *off to False. That just seems pointless. I've already deleted the email so maybe I got the work variable wrong, but this is in response to the person who suggested that I do that. Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin Jim Langston <jlangston@celsin To: "'rpg400-l@midrange.com'" <rpg400-l@midrange.com> c.com> cc: Sent by: Fax to: rpg400-l-admin@mi Subject: RE: NOT on the left side drange.com 01/23/2002 04:18 PM Please respond to rpg400-l 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 _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com 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.