MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guide de l'utilisateur Page 199

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 256
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 198
Run and test the application 199
This code sample purposely contains a logic error, which will help demonstrate how
debugging works.
Run and test the application
Once youve entered the sample code, you can run and test the application.
1. Save the file and then click the Run command ( ) on the main toolbar. The application
opens in a web browser.
2. To test the application, enter 100 as the amount, select US Dollars from the combo box
control and then click the Calculate button.
You should see the conversion amount displayed in euros.
3. Now, to demonstrate the flaw in the code, enter 100 as the amount, select Euro from the
combo box, and then click the Calculate button.
You should see the following:
Rather than displaying a conversion value in US dollars, the
NaN data type constant is
displayed, indicating that the function has somehow failed.
To help locate the flaw in the code, you use the debugging tools in Flex Builder.
Vue de la page 198
1 2 ... 194 195 196 197 198 199 200 201 202 203 204 ... 255 256

Commentaires sur ces manuels

Pas de commentaire