MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Uživatelský manuál Strana 35

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 63
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 34
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
Zobrazit stránku 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 62 63

Komentáře k této Příručce

Žádné komentáře