Hello, I have a question about the realization of an incremental alphanumeric counter in visual basic.net
any idea of how it could be done?
The counter format would be as follows:
PRE-001/13/12/2016
This is a simple numerical counter but I can not adapt it with another type of data like string, rather I do not have an idea of how to do it
in the event load of form1
each time the program will be automatically increase in the number one by one and capture the current date:
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim con As Integer
Dim sufijo As String
Dim fecha As Date
sufijo= "PRE"
fecha = DateTime.Now.ToString("dd/MM/yyyy")
con = 0
con = con + 1
txtnumero.Text = sufijo+con+fecha
End Sub
Including the word PRE
at the beginning, the number of the generated budget (which is the one that will increase one by one) followed by the creation date is this possible in vb.net
?