Glenn, I didn't know about that $OPTIONS setting! Thanks so much for
pointing it out!! Too bad UV support didn't mention it to me ages ago
when I had called them about it.
-Dianne
Glenn Herbert wrote:
Oh yes, I forgot to add that if you use the $OPTIONS REAL.SUBSTR you can
also use other negative values as the second substring parameter, which
then indicates that you want to start the substring extraction from your
starting point but extract only until the Xth character from the end. For
instance:
0001 $OPTIONS REAL.SUBSTR
0002 X="1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"
0003 PRINT "A: ":X[11,-1]
0004 PRINT "B: ":X[11,-5]
will result in:
A: ABCDEFGHIJKLMNOPQRSTUVWXYZ
B: ABCDEFGHIJKLMNOPQRSTUV
_________________________________________________________
"I reject your reality and substitute my own" - Adam Savage
Glenn M. Herbert - Connectivity Development Engineer
Information Integration Solutions, IBM Software Group
50 Washington Street Westboro, MA 01581
508-599-7281 direct
Some platforms (Reality, maybe?) had the -1 option on substring
extractions; I thought that was clever. Too bad it never caught on,
or if it did, I didn't notice.
-Kevin
[EMAIL PROTECTED]
http://www.PrecisOnline.com
-----Original Message-----
-------
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/