HP3000-L Archives

January 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Paul H Christidis <[log in to unmask]>
Reply To:
Paul H Christidis <[log in to unmask]>
Date:
Mon, 15 Jan 2001 14:43:36 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
Used the following commands to extract a substring:

:setvar indx 8
:setvar text "abcdefgh"
:setvar subt STR(text, indx, -4)
:showvar subt
SUBT =
:echo ![LEN(subt)]
0

According to the help text of the STR function, the above should have
assigned the string "efgh" to the variable 'subt'.  Instead it assigned a
'null' string to it.

Anyone else has encountered the above.

Regards
Paul Christidis

ATOM RSS1 RSS2