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: removePunc()


Remove punctuation from a string.

Usage:

removePunc( string : {char} : {allow} : {repWith} );

Name Type Options Opt/Req Description
string 512A Const Varying Req The string to remove punctuation from.
char 1A Const Opt A punctuation charcter to either remove or allow(see parm3):' ' is the default to remove all punctuation marks.
allow N Const Opt Ignored if char = ' ' ! *ON means to allow the punctuation mark sent in parm2: the default is *OFF if not sent.
repWith 5A Const Varying Opt Replaces all puncuation specified in char with this field value. If char is blank then this field will replace all punctuation. If allow is *ON, then all punctuation EXCEPT char will be replaced by this value.
Returns: 512A Varying n/a The adjusted string.

This site conforms with the following W3C specifications:

Web Essentials

Contact