I am working on debugging a multithreaded network application. I have two forms. One of which is my testing form, the other is the actual user form. I need to be able to load only my testing form when testing and then load my other form. I was thinking i could do this using command line parameters but i'm not sure where to put my code. If anyone has any idea on how i could accomplish this it would very helpful.
[CODE=vb]Sub Main()
Dim a_strArgs() As String
Dim strFilename As String
Dim i As Integer
a_strArgs = Split(Command$, " ")
For i = LBound(a_strArg s) To UBound(a_strArg s)
Select Case LCase(a_strArgs (i))
Case "-t", "/t"
testingform.Sho w()
Case "-m", "/m"
mainform.show()
Case Else
MsgBox("Invalid argument: " & a_strArgs(i))
End Select
Next i
End Sub[/CODE]
[CODE=vb]Sub Main()
Dim a_strArgs() As String
Dim strFilename As String
Dim i As Integer
a_strArgs = Split(Command$, " ")
For i = LBound(a_strArg s) To UBound(a_strArg s)
Select Case LCase(a_strArgs (i))
Case "-t", "/t"
testingform.Sho w()
Case "-m", "/m"
mainform.show()
Case Else
MsgBox("Invalid argument: " & a_strArgs(i))
End Select
Next i
End Sub[/CODE]
Comment