RPGNext
Take Your RPG Development to theNextLevel
Site Links
Home
RPG Programming
xRPG Downloads
xRPG Docs
About This Site
About Me

RPG Gurus
Bob Cozzi
Brad Stone
Scott Klement
Jon Paris

iSeries Links
Alpha Works
Midrange.com
FAQ@Midrange.com
MidrangeServer.com
IBM Docs
iSeries Infocenter
MCPress
Easy400
API Finder

xRPG Core Library Procedures - RNBSTRING: compareStr()


Receives 2 strings and compares values.

Usage:

compareStr( string1 : string 2 : {ignoreCase} : {noPuncs} );

Name Type Options Opt/Req Description
string1 3000A Const Varying Req The first string to compare.
string2 3000A Const Varying Req The second string to compare.
ignoreCase N Const Opt Allows case sensitive comparison. If ignoreCase is not sent then case is ignored by default.
noPuncs N Value Opt Allows comparison without punctuation - handy when comparing address fields, salutations, and others that may have slight variations:
( ex: "Main St" and "MAIN ST." or "DR SMITH" and "Dr. Smith" would return true if this is *ON ). *OFF is the default if not sent.
Returns: N n/a n/a *ON if comparison is equal, *OFF if it is not.

This site conforms with the following W3C specifications:

Web Essentials

Contact