M manu Active Member Licensed User Longtime User Apr 29, 2007 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Apr 29, 2007 #2 Here is the proper syntax: txtTotalPosi.Text=format(txtDetallQuantity.Text * txtDetallUnitPrice.Text, "N2") Basic4ppc automatically converts between strings and numbers as necessary.
Here is the proper syntax: txtTotalPosi.Text=format(txtDetallQuantity.Text * txtDetallUnitPrice.Text, "N2") Basic4ppc automatically converts between strings and numbers as necessary.
M manu Active Member Licensed User Longtime User Apr 29, 2007 #3 ok Erel. Thank you to respond so quick, basic4ppc is very good,