powerpro version 4.9m2

Place the attached two powerpro note files in ppronotesfolder++?"bug\".
Open note file "__20091107.PProNote" as a note, and run the note as a script.
In the debug window you should see 1290, 1286, and 286, respectively for
the length of the content of the whole note,
the length of the content less the last four characters (function slice),
and the length of the content less the last four characters (function select).
Clearly 286 is wrong, it should be 1286. Relevant code:

local s=nh.gettext
win.debug(length(s))
win.debug(length(s.slice(0,s.length-5)))
win.debug(length(s.select(s.length-4))) ;; bug?

I think select() is deprecated, because the help file doesn't document it 
anymore.
PowerPro still honors select() for compatibility with older scripts.
Work-around: use slice().

(2 MIME attachments included)

[Non-text portions of this message have been removed]

Reply via email to