Click here to Skip to main content
15,896,912 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSorting rows as specific template Pin
User 1367511413-Nov-18 4:02
User 1367511413-Nov-18 4:02 
AnswerRe: Sorting rows as specific template Pin
Richard MacCutchan13-Nov-18 5:11
mveRichard MacCutchan13-Nov-18 5:11 
QuestionVB6 AND LIST SQLSERVER Pin
sal2112-Nov-18 20:53
sal2112-Nov-18 20:53 
AnswerRe: VB6 AND LIST SQLSERVER Pin
Eddy Vluggen14-Nov-18 0:32
professionalEddy Vluggen14-Nov-18 0:32 
QuestionProblem with Xml Path Pin
mo149211-Nov-18 13:48
mo149211-Nov-18 13:48 
QuestionRe: Problem with Xml Path Pin
Richard MacCutchan11-Nov-18 22:08
mveRichard MacCutchan11-Nov-18 22:08 
AnswerRe: Problem with Xml Path; Closed here Pin
mo149211-Nov-18 23:46
mo149211-Nov-18 23:46 
QuestionAutoincrement with strings Pin
allukasan7-Nov-18 22:08
allukasan7-Nov-18 22:08 
//This code is working but i want is vice versa of the sample output plus current year...
Public Sub incrPR()
        Dim curValue As Integer
        Dim result As String
        Dim s As String = "PR"
        Dim yr As String = Now.Year.ToString()
        Using con As SqlConnection = New SqlConnection(ConString)
            con.Open()
            Dim cmd = New SqlCommand("Select MAX(SpecialOrderNo) FROM SpecialOrder", con)
            result = cmd.ExecuteScalar().ToString()
            cmd.Parameters.Clear()
            If String.IsNullOrEmpty(result) Then
                result = "PR000"
            End If
            result = result.Substring(3)
            Int32.TryParse(result, curValue)
            curValue = curValue + 1
            result = s + curValue.ToString("D3")
            txtno.Text = result
        End Using
    End Sub

//Sample output: PR001, PR002

//Question: How to Increment Number with current year and Characters? 
//Expected sample output: 001-2018-PR

//Thank you

AnswerRe: Autoincrement with strings Pin
Richard MacCutchan7-Nov-18 22:22
mveRichard MacCutchan7-Nov-18 22:22 
AnswerRe: Autoincrement with strings Pin
Eddy Vluggen8-Nov-18 1:41
professionalEddy Vluggen8-Nov-18 1:41 
QuestionMidi Pin
lucadacomo5-Nov-18 0:32
lucadacomo5-Nov-18 0:32 
AnswerRe: Midi Pin
Dave Kreskowiak5-Nov-18 2:18
mveDave Kreskowiak5-Nov-18 2:18 
AnswerRe: Midi Pin
Richard MacCutchan5-Nov-18 2:39
mveRichard MacCutchan5-Nov-18 2:39 
QuestionData conversion error of the array. Pin
Member 136558671-Nov-18 2:06
Member 136558671-Nov-18 2:06 
AnswerRe: Data conversion error of the array. Pin
Richard MacCutchan1-Nov-18 2:27
mveRichard MacCutchan1-Nov-18 2:27 
GeneralRe: Data conversion error of the array. Pin
Member 136558671-Nov-18 8:25
Member 136558671-Nov-18 8:25 
GeneralRe: Data conversion error of the array. Pin
Richard MacCutchan1-Nov-18 8:51
mveRichard MacCutchan1-Nov-18 8:51 
QuestionMy code is showing syntax error in insert into statement can you please help me with a solution guys Pin
Member 1403944131-Oct-18 4:48
Member 1403944131-Oct-18 4:48 
AnswerRe: My code is showing syntax error in insert into statement can you please help me with a solution guys Pin
Richard Deeming31-Oct-18 5:05
mveRichard Deeming31-Oct-18 5:05 
AnswerRe: My code is showing syntax error in insert into statement can you please help me with a solution guys Pin
Richard MacCutchan31-Oct-18 6:54
mveRichard MacCutchan31-Oct-18 6:54 
Questionvisual zkteco Pin
Member 1402998229-Oct-18 11:38
Member 1402998229-Oct-18 11:38 
AnswerRe: visual zkteco Pin
Richard MacCutchan30-Oct-18 5:21
mveRichard MacCutchan30-Oct-18 5:21 
QuestionHow to create an custom error message box , that I can used for all my forms using vb.net Pin
Member 140121708-Oct-18 8:48
Member 140121708-Oct-18 8:48 
AnswerRe: How to create an custom error message box , that I can used for all my forms using vb.net Pin
Mycroft Holmes8-Oct-18 11:31
professionalMycroft Holmes8-Oct-18 11:31 
AnswerRe: How to create an custom error message box , that I can used for all my forms using vb.net Pin
JR21211-Oct-18 10:35
JR21211-Oct-18 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.