Exercise: Summing Values

  To sum the values in two text boxes to a third text box:

  1. In Design mode, select the + button and choose Dashboard, then Scripts.

  2. Add the parseInt() method around operand1.Text.

    txt_result.Text=parseInt(operand1.Text)+operand2.Text
  3. Add the parseInt() method around operand2.Text.

    txt_result.Text=parseInt(operand1.Text)+parseInt(operand2.Text)

    Caution!

    The method parseInt is lowercase, with the I capitalized.

  4. Click OK to save the script and close the Script Editor.

    In Run mode, the sum of the numbers in operand1 and operand2 is displayed in txt_result after you click the + button.