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