![[About]](e:\os2httpd_1.3.2\htdocs\rexxtipsntricks\about.gif)
![[Toc]](e:\os2httpd_1.3.2\htdocs\rexxtipsntricks\toc.gif)
0.9b (c) 1995 Peter Childs
The following REXX functions to work with DBCS mixed Strings are only documented in the IBM: OS/2 2.0 Procedures Language/2 Reference Manual and in the Object-Oriented REXX online documentation:
* DBADJUST * DBBRACKET * DBCENTER * DBLEFT * DBRIGHT * DBRLEFT * DBRRIGHT * DBTODBCS * DBTOSBCS * DBUNBRACKET * DBVALIDATE * DBWIDTH
Well, for the "normal" REXX programmer only two of these functions are interesting (The functions also work with SBCS strings):
Name DBRLEFT( string, n {,option} )
Function Delete n chars beginning with the first char
Example DBRLEFT( "ABCDEFG", 2 ) gives "CDEFG"
Note The parameter option is only needed for DBCS strings)
For SBCS strings you should not use this parameter.
Name DBRRIGHT( string, n {,option} )
Function Delete n chars beginning with the last char
Example DBRRIGHT( "ABCDEFG", 3 ) gives "ABCD"
Note The parameter option is only needed for DBCS strings)
For SBCS strings you should not use this parameter.
Inf-HTML End Run - Successful