Apple WebObjects 3.5 Manual de usuario Pagina 89

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 120
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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.
Vista de pagina 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 119 120

Comentarios a estos manuales

Sin comentarios