Posts by Eder Nascimento • 72 points
4 posts
-
0
votes2
answers57
viewsA: Not changing the page when changing the page
Remove this line from your code page = 1; It will work. You are always putting the value 1 in the variable.
-
0
votes2
answers3813
viewsA: How to truncate decimal in X decimal places?
Try using the Math.Truncate for example: using System; class Program { static void Main() { decimal a = 1.223M; double b = 2.913; a = Math.Truncate(a); b = Math.Truncate(b); Console.WriteLine(a);…
-
3
votes2
answers324
viewsA: Firstordefault, Singleordefault, Elementatordefault
Simple, the use of Default returns a NULL value if it has no results... while the other gives an error if it does not exist and is used. Always use with Default and do an IF validation before using,…
-
1
votes2
answers76
viewsA: How can I create a list
You need to create an object of type List Pedidovendaitems Thus: List<PedidoVendaItens> objLista = new List<PedidoVendaItens>(); Then use the Add method to add items to the list.…