MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Manuale Utente Pagina 31

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 63
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 30
set thisLine = line x of temp
if char 1 of thisLine = TAB then
set thisLine = ReplaceFirst(thisLine," ",TAB)
put thisLine into line x of temp
end if
end repeat
set the text of member memName = temp
end
ReplaceNext(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 the first occurrence of findString in sourceString on or after the current position and returns
the character position of its first character in sourceString. Current position may have been set by
a previous Find or Replace or by the SetPosition command. After ReplaceNext the current
position is the character position after the end of the replaced string. If ReplaceNext goes past the
end of the source string it will return 0 and set position back to 0, which causes a subsequent
ReplaceNext to wrap around and start at the beginning of the string.
This command ignores the current case-sensitivity setting set by SetCaseSensitivity for
high-ASCII (above numtochar(125) ) characters. For high-ASCII characters it is always
case-sensitive. See (deprecated in D11) for more information on case sensitivity.
Example:
set source = "aaa cat bbb cat ccc cat "
set source = ReplaceFirst(source,"dog","cat")
put source
-- "aaa dog bbb cat ccc cat "
set source = ReplaceNext(source,"dog","cat")
put source
Online Help
31
Vedere la pagina 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 62 63

Commenti su questo manuale

Nessun commento