Apple WebObjects 3.5 Manuale Utente Pagina 89

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 120
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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.
Vedere la pagina 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 119 120

Commenti su questo manuale

Nessun commento