Apple WebObjects 3.5 Instrukcja Użytkownika Strona 89

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 120
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 88
Refining Main.wo
89
Setting a Number Format
In addition to a dateformat attribute, text field elements also have a numberformat
attribute.
1. Inspect the
revenue text field.
The
revenue text field’s numberformat attribute is bound to the string
“###.##”. This binding tells the text field that it’s displaying a number
and describes how to format it.
2. Change the text field’s
numberformat binding value to the string (including
the quotes):
"$ #,##0.00".
Using this number format, the Movies application formats the number
1750000 as $ 1,750,000. For more information on creating number
formats, see the NumberFormatter class specification in the
Foundation Framework Reference.
Przeglądanie stron 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 119 120

Komentarze do niniejszej Instrukcji

Brak uwag