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

  • 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 31
-- "aaa dog bbb dog ccc cat "
put getposition()
-- 16
ReplaceAll(sourceString,replaceString,findString) - where sourceString is the string to search in,
replaceString is the string to replace the found string with and findString is the string to look for.
Returns a copy of the source string modified by the replace operation or "" if there was an error.
Finds all occurrences of findString in sourceString and replaces each occurrence with
replaceString. Not affected by SetPosition. Always searches from character 1 of sourceString.
Does not affect current position.
Example 1:
set source = "aaa cat bbb cat ccc cat "
set source = ReplaceAll(source,"dog","cat")
put source
-- "aaa dog bbb dog ccc dog "
Example 2:
on fixLineEndings convertToWhichType
-- Converts Mac format text file to PC or
-- PC to Mac. Utility handler. No error
-- checking built in.
--
-- EX: fixLineEndings("PC")
-- Converts Mac file to PC format. Prompts
-- for file to convert.
Online Help
32
Zobrazit stránku 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 62 63

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

Žádné komentáře