|
Mark Try changing field1test to an indicator field - type 'n' and then assign a value, or not, to field2test and rerun your test then. Bob -----Original Message----- From: MWalter@xxxxxxxxxxxxxxx [mailto:MWalter@xxxxxxxxxxxxxxx] Sent: Tuesday, April 05, 2005 3:54 PM To: RPG programming on the AS400 / iSeries Subject: Re: Eval with two equals? Hmm, this is what I thought it was, but I just entered this code into a source member I use for testing snippets of code: field1test = field2test = '1'; dsply field1test; dsply field2test; the first dsply returned '0' the second one returned a blank both field1test and field2test are defined as 1 byte alpha fields. Anyone else care to chime in? Thanks, Mark Mark D. Walter Senior Programmer/Analyst CCX, Inc. mwalter@xxxxxxxxxx http://www.ccxinc.com
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.