×
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.
String > ''
String < ''
Where is your String = ''?
Because String is '' (length 0) the '' constant doesn't get padded with blanks to match String length.
Paul Morgan
Principal Programmer Analyst
IT Supply Chain/Replenishment
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Tuesday, October 11, 2011 10:41 AM
To: RPG programming on the IBM i / System i
Subject: Re: RPG Error or ?
If I change it to:
string = x'0515' + 'abc';
string='';
and debug it on an active line after the above I get
00000515 81828300 - ....abc
but if I change it to:
/free
*inlr=*on;
string='';
then none of the DSPLY's kick in, and
EVAL string :x
00000000 00000000 00000000 00000000 - ................
so, apparently
00050515 81828300 00000000 00000000 - ....abc........
is less than
00000000 00000000 00000000 00000000 - ................
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.