Razzak:

Very handy. Used it to understand a TAB problem.

Would there be r:oom in the toolbox for a "R(etain T(railing SPACE"
function?

(RTSPACE(value))

Example:

vHumpty = '1234<sp>x<sp>'

SET VAR vDumpty = (RTSPACE(SGET(.vHumpty,3,5))))

SHOW VAR vDumpty  = '<sp>x<sp>'


R:Base is appreciated more every day,

Bruce


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of A. Razzak
Memon
Sent: Monday, July 01, 2013 2:56 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: SGET, Variables and Trailing <Space>

At 05:40 PM 7/1/2013, Dennis McGrath wrote:

>Trailing spaces are routinely dropped by RBASE. This is the expected
behavior.


Leading spaces as well, specifically, when using the (SLEN()), (SGET()), or
other SM functions.

Implementation of (ISSPACE(value)) functions is the result of such behavior.

(ISSPACE(value)) checks the first character of a TEXT string. The function
returns a 1 if true and a 0 if false. The ISSPACE function evaluates as true
when the first character is a space or one of the following:  LF (char
(10)), CR (char (13)), VT (char (11)), TAB (char (9)), FF (char (12)), EOL
(char (254)).

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase
-- 
30+ years of continuous innovation!
15 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
-- 


Reply via email to