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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 63
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 41
its lowercase counterpart if there is one. Leaves the character unchanged if there is no lowercase
character for it. This method is deprecated in D11.
Example:
set source = "pUT $50,000 iN UnMARked BIlLs IN tHe BRieFcaSE."
set source = ToLowerCase(source)
put ToUpperCase(char 1 of source) into char 1 of source
put source
-- "Put $50,000 in unmarked bills in the briefcase."
FORMATTING
The following commands break text up into lines of a specified length and align the text on each
line to the left, center or right margin. They are most useful for formatting plain text that will
display in a monospaced font such as Courier. Lines created by wrapping are delimited with the
Mac line endings (CR only). A single word in the text that is longer than the wrap length will not
be broken, and will therefore cause that line to be longer than the wrap length. These methods
return a modified copy of the source string, leaving the original string unchanged.
HardWrapText(sourceString,charsPerLine) - where sourceString is the string to operate on and
charsPerLine is the maximum number of characters per line. Returns a copy of the source string
reformatted or "" if there was an error. Aligns text to left margin and breaks any line longer than
the specified length limit with RETURN.
Example:
set ruler = RETURN & "123456789012345678901234567890" & RETURN
set source = "The quick brown fox jumped over the lazy dog."
set wrapped = HardWrapText(source,20)
put ruler & wrapped
-- "
123456789012345678901234567890
Online Help
42
Przeglądanie stron 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 62 63

Komentarze do niniejszej Instrukcji

Brak uwag