Hi to all:
THis code extract a value from a table to a var...
the Var_IES_Fornecedores return a value = 174526.852222225Code:Dim var_IES_fornecedores as double = 0 For Each dRow In ds.Tables("Tabelavalor").Rows If dRow("numeroconta").Equals("221") Then If dRow("acumuladosdebito").Equals("0,00") Then Else Var_IES_Fornecedores -= FormatNumber(dRow("acumuladosdebito"), 2) End If End If If dRow("numeroconta").Equals("221") Then If dRow("acumuladoscredito").Equals("0,00") Then Else Var_IES_Fornecedores += FormatNumber(dRow("acumuladoscredito"), 2) End If End If Next
This is the problem...the numbers after the period should be just 2 and not a lot of numbers...
everythin wrong with the code?
Thanks


Reply With Quote
