Question Identify the wrong code

darshan

New member
Joined
Mar 23, 2021
Messages
2
Programming Experience
3-5
VB.NET:
    Public Sub Main(sDocumentType() As String)
        Try
            _dtParameters = DjjData.GetApplicationParameters(ApplicationType)
            ErrorPanel.DJJ_ApplicationType = ApplicationType
            ErrorPanel.DJJ_BizType = BizType
            ErrorPanel.DJJ_Emailonerror = True
            ErrorPanel.DJJ_EmailRecipients = DJJFunctions.GetParameterValue(_dtParameters, "EmailonerrorRecipients")
            Select Case sDocumentType(0)
                Case "PO", "SO"
                    ContractPrintFunctions.ProcessContractDocuments(BizType, "PO", ApplicationType)
                Case "PCO", "SCO"
                    ContractPrintFunctions.ProcessChangeOrderDocuments(BizType, sDocumentType(0), ApplicationType)
                Case Else
                    Exit Sub
            End Select
        Catch ex As Exception
            ErrorPanel.HandleError(ex, "PrintProcessor")
        End Try
    End Sub
 
Last edited by a moderator:

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,553
Location
Sydney, Australia
Programming Experience
10+
Firstly, please don't post unformatted code.

Secondly, a thread that is nothing but a vague title and some code is unacceptable. If you'd like us to help you then the least you can do is help us. Start by writing a FULL and CLEAR explanation of the problem. Include the relevant code in that. Finally, write a clear title that summarises the topic of the thread. You have done very little of that.
 
Top Bottom