MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Instrukcja Użytkownika Strona 35

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 63
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 62 63

Komentarze do niniejszej Instrukcji

Brak uwag