Posts by Gabriel Marques • 79 points
7 posts
-
0
votes1
answer62
viewsQ: Print contents of an object belonging to a Treeset (Collection)
I have a Treeset that will store several objects of a class "Products", this class has 3 attributes: int commodity; String descProduct; float precoProduct; After storing some "Product" objects in…
-
2
votes1
answer65
viewsQ: Adding an object to a collection returns "cannot be cast to java.lang.Comparable"
The code is this: public class Catalogo { SortedSet<Produto> lProdutos = new TreeSet(); public void addProduto(int cod, String desc, float preco){ try{ Produto p = new Produto(cod, desc,…
-
0
votes1
answer97
viewsQ: Update a value in a conditional column by comparing 2 columns from 2 different tables
In a table, I need to enter the value 'ID Related Assembly' in a field, with the following condition: This value can only be entered when the value of the "Id_table1" field is equal to the values…
sqlasked Gabriel Marques 79 -
2
votes1
answer371
viewsQ: Select columns with no specific name
I am developing a C# application that consumes data from a spreadsheet and at some point I need a query string that will feed a variable. For example: strComando1 = "SELECT TOP 2 ColunaGenerica1,…
-
0
votes1
answer256
viewsA: Report Viewer, direct print and file saving without preview
Yes, it is possible through Reportviewer’s own Windows Form control. Clicking the print button on the form toolbar opens the common print window that starts with the printers configured on the…
-
0
votes1
answer41
viewsA: Looping in Rows of a VB table
I’ve already solved the problem. The code looks like this: For Each Row As DataRow In ds.Tables(0).Rows barcode.CodeToEncode = Row("productId") Row("Barcode") = barcode.generateBarcodeToByteArray()…
-
1
votes1
answer41
viewsQ: Looping in Rows of a VB table
I’m trying to make this loop between the Rows in the database work. I have a code ready in C# and I’m using it as a reference, but I can’t get this part to run. It was like this: For Each Row In…