setPosition(4)
put FindPrevious(source,"bbb")
-- 0
setPosition(4)
put ReplaceNext(source,"xxx","bbb")
-- "aaaxxxccc"
Example 2
-- One operation can set position
-- so that another operation will
-- not start at the beginning of
-- the next string
--
set source = "aaabbbccc"
put FindFirst(source,"bbb")
-- 4
-- Position is now set to 4
set source = "Do not pass go."
put FindNext(source,"Do")
-- 0
-- The operation started at position 4,
-- so it missed the word at pos 1.
-- Should have used FindFirst on the
-- new string.
Online Help
35
Komentáře k této Příručce