Sentece Format

Discussion in 'Questions (Windows Mobile)' started by manu, Apr 29, 2007.

  1. manu

    manu Active Member Licensed User


    I try to carry out an operation and that me of as a result an I number with 2 decimals, I believe that I write bad the sentence.

    As it is written correctly?

    txtTotalPosi.Text=(format( " txtDetallQuantity.Text " * " txtDetallUnitPrice.Text " , "N2"))

    thank you
  2. Erel

    Erel Administrator Staff Member Licensed User

    Here is the proper syntax:

    txtTotalPosi.Text=format(txtDetallQuantity.Text * txtDetallUnitPrice.Text, "N2")

    Basic4ppc automatically converts between strings and numbers as necessary.
  3. manu

    manu Active Member Licensed User

    ok Erel.

    Thank you to respond so quick, basic4ppc is very good,