MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Bedienungsanleitung Seite 34

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 63
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 33
SetPosition(characterNumber) - where characterNumber is the integer character number to
reposition search start to. No return. JavaScript Note: This command requires a small Lingo
script to work in JavaScript.
Position is the current character position that TextCruncher has been set to. You use SetPosition
to set the current character position manually. The following TextCruncher commands also affect
the current position:
FindFirst
FindNext
FindPrevious
ReplaceFirst
ReplaceNext
Some TextCruncher commands use the current position as their starting point:
FindNext starts searching from the character after the current position.
FindPrevious starts searching from the character before the current position
ReplaceNext starts searching from and including the current position
TextCruncher does not associate position with any particular string you are searching. You
should either use FindFirst or ReplaceFirst to find the first occurrence in a new string or reset the
position to 0 manually between operations on different strings to avoid starting a search in the
middle of the string instead of at the beginning.
Example 1:
-- Position affects commands differently
set source = "aaabbbccc"
setPosition(4)
put FindNext(source,"bbb")
-- 0
Online Help
34
Seitenansicht 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 62 63

Kommentare zu diesen Handbüchern

Keine Kommentare