Public Class clsLicenceSentinel Private mvarintProgramNumber As Integer Public Sub New(intProgramNumber As Integer) mvarintProgramNumber = intProgramNumber End Sub Public Sub New(strProgramNameAndMajorVersion As String) Dim intProgramNumber As Integer Select Case strProgramNameAndMajorVersion Case "APSDS3" intProgramNumber = 1 Case "CIRCLY6" intProgramNumber = 2 Case "CIRCLY3" intProgramNumber = 3 Case "CIRCLY4" intProgramNumber = 4 Case "APSDS4" intProgramNumber = 5 Case "CIRCLY5" intProgramNumber = 6 Case "APSDS5" intProgramNumber = 7 Case "HIPAVE1", "HIPAVE5" '20050208 intProgramNumber = 8 End Select 'call the constructor Call New (intProgramNumber) '<<<< gives "Type Expected" error End Sub End Class
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: