Sentece Format

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

  1. manu

    manu Active Member Licensed User

    Hi,

    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,
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice