Developer technologies | VB
An object-oriented programming language developed by Microsoft that can be used in .NET.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This line of VB.net code produces a "IDE0140 object creation can be simplified" warning. How do I resolve this?
Dim SQLCommand1 As SqlCommand = New SqlCommand
An object-oriented programming language developed by Microsoft that can be used in .NET.
Answer accepted by question author
Hi
Try
Dim SQLCommand1 As New SqlCommand