Hello Gents
I have a small problem and hope someone ca help me.
I wrote a small code to generate auto-increment number and save it to the database. the problems is that whrn it reaches 10, it stops incrementing
hereis the code
Dim Separ As String() = fullString.Split("-")
Dim StrPart As String = String.Format(Separ(0), "ABC", System.String.Format("SIM"))
Dim intPart As Integer = Convert.ToInt32(Separ(1))
Dim Novonumero As String = String.Empty
Novonumero = String.Format("{0}-{1}", Separ(0), System.Threading.Interlocked.Increment(intPart), 1)
lblTicketNumber.Text = Novonumero
can anyone help me?
Thank You