tkbr0wn
October 17th, 2001, 10:36 AM
I am very new to VB and I have written a SQL-DMO app that has a GUI interface and a command line interface. I have created a SUB main and made it the startup. Here it is
Sub Main()
' If there is a command line, then this is batch mode
If Len(Command$()) Then
' Parse and run the command line
RunCommand
frmRun.Hide
Else
MainForm.Show
End If
End Sub
Problem is after the frmRun.Hide, the form hides but the exe keeps running. What do I do?
Thanks in advance
Sub Main()
' If there is a command line, then this is batch mode
If Len(Command$()) Then
' Parse and run the command line
RunCommand
frmRun.Hide
Else
MainForm.Show
End If
End Sub
Problem is after the frmRun.Hide, the form hides but the exe keeps running. What do I do?
Thanks in advance