htran
Tue Feb 22 10:37:25 CST 2005
It turns out that the reason for the display of the VB6 form is due to
the form not being unloaded in the VB6 program. So, as you had
indicated, the WaitOnReturn does return to the next script statement
after the completion of the VB6 program. Thanks again for the
response.
Michael Harris (MVP) wrote:
> htran wrote:
> > Thanks for the response. Do you know if there is a way to diable
the
> > WindowStyle parameter? In my testing, it seems that the run
command
> > would bring up the VB6 form. Then, upon the closing of the form
> > window, the script does continue with the next statement. However,
> > since our VB6 programs are mainly batch processing, this present a
> > problem in that we have to close these form windows. Please let me
> > know.
>
>
> VB6 is a bad choice for EXEs meant for unattended automation since it
does
> not support creating true console applications. A VB6 COM component
is
> better. If you must use VB6 EXEs, write formless apps (startup is Sub
> Main(), not a form). If you do, then make 100% sure the app never
leaks
> unhandled runtime errors or you'll get a VB runtime error dialog
which you
> may not even be able to see, depending on the environment in which
the app
> is executed.
>
> VB.Net or C# or JScript.Net is a far better language choice since all
> support true console apps.
>
>
> --
> Michael Harris
> Microsoft MVP Scripting
>
http://maps.google.com/maps?q=Sammamish%20WA%20US