Posts by lemario • 429 points
20 posts
-
1
votes1
answer32
viewsQ: Simpledateformat am/pm format returns "afternoon" instead of "PM"
Using a solution to this question: https://stackoverflow.com/questions/6907968/how-to-convert-24-hr-format-time-in-to-12-hr-format In doing the following: Int hour = 13; SimpleDateFormat _24HourSDF…
-
0
votes0
answers61
viewsQ: How to add bytes to a byte array?
Boas. How do I add one byte[] to another byte[]? Byte1.add(byte2); Giving more code will not help in understanding the problem. But I will explain better. I have a byte[] called fullbytecoll[] that…
-
1
votes1
answer759
views -
5
votes1
answer759
views -
0
votes1
answer477
viewsQ: To change the FROM parameter of sending email so that the sending server does not appear
I’ve been using this tutorial as base, but when sending the message by email (using PHP) appears as sending server io.wv.pt. Example 1: Example 2: PHP code: <?php if (isset($_POST['postsubmit']))…
-
0
votes1
answer96
viewsQ: Error sending email - SMTP
I am trying to send a verification email. But make an error: I have this code: /*Define constant to connect to database */ DEFINE('DATABASE_USER', 'root'); DEFINE('DATABASE_PASSWORD', '');…
-
-1
votes1
answer442
viewsQ: "Notice: Undefined index: matricula" error
I have two identical codes. One works (user) and one doesn’t (cars). Someone can explain why? Code for the cars: <html> <head> <meta charset="utf-8">…
-
2
votes1
answer227
viewsQ: Error updating a table. (Duplicate key)
Good. When doing the update give me error.. Yes ja la I have a record in the table with those values, but when changing the type should not let me do?…
-
4
votes2
answers98
views -
2
votes1
answer135
views -
2
votes1
answer344
viewsQ: Insert/update with values from other tables
I have this bd. I want to do an Insert/update the table misses_licao. But I don’t have any id, just the numbers and names. How do I make an Insert/update to relate to another table? Dim sql As…
-
0
votes2
answers62
viewsA: Datagridview and checkbox - strange behavior.
I already took care of it. I was using the "cellvaluechanged" action and this was not being called in due time either. The problem is that in Vb when we use checkboxes and datagridviews, it only…
-
0
votes2
answers62
viewsQ: Datagridview and checkbox - strange behavior.
I have a datagridview with checkboxes. I have this code: Private Sub DataGridView2_CellMouseClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView2.CellMouseClick If…
-
0
votes2
answers173
viewsQ: Strange Comic Book Behavior - Too Many Records
The problem is that this returns me 8 records while in the database there are only 2. That is to say 4 for each 1. I cannot understand why. (If you want to edit the title of the question) I got this…
-
3
votes1
answer1330
viewsA: Traverse all lines of a Datagridview
I was able to answer by myself, but I leave the answer here anyway to anyone. For Each lel As DataGridViewRow In F_Principal.DataGridView2.Rows MsgBox("Index : " & lel.Index) Next The "lel"…
-
3
votes1
answer1330
viewsQ: Traverse all lines of a Datagridview
I have this for: For Each DataGridViewRow In F_Principal.DataGridView2.Rows How do I select queue by queue? There is way to see how many times the queue is repeated?…
-
0
votes1
answer63
viewsQ: Sqldatareader Not Closed?
Imports System.Data.SqlClient Public Class F_Contentor Dim F_Topo As New Form2() Dim F_Principal As New Form3() Dim Prof_Ses_Nome As String Dim Prof_Ses_Id As Integer Const cs As String = "Data…
-
0
votes1
answer75
viewsQ: Error connecting between BD tables
I’m trying to link the lesson table to the fouls. I am using the table "Licao_faltas" to make the connection, but it is not letting me connect the "faltas_Id" of the "licao" to the "licao_faltas"…
sql-serverasked lemario 429 -
1
votes0
answers41
viewsQ: Import and export date file - DATABASE
Boas. Scenario: "I have two pc’s, with the same program that uses a database. I want to export the data from one PC to put on a flash drive and import to the other PC" Question: How do I select…
-
5
votes1
answer148
viewsQ: Import is not working
Imports System.DirectoryServices ERROR MESSAGE: "Warning 1 Namespace or type specified in the Imports 'System.Directory.Services' doesn’t contain any public Member or cannot be found. Make sure the…