Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Show VBScript error message in windows Form Application

Reply
 
Old 10-08-2009   #1 (permalink)
kaymaf


 
 

Show VBScript error message in windows Form Application

Hi
I want to know if possible to show the error message in my program instead
of windows script Host messagebox when i run a vbscript from my text
editor. Im try to put the error information in the listview like a compiler

Thanks
kaymaf



My System SpecsSystem Spec
Old 10-08-2009   #2 (permalink)
Paul Randall


 
 

Re: Show VBScript error message in windows Form Application


"kaymaf" <kaymaf@newsgroup> wrote in message
news:873F4C21-08C3-46F8-9E48-EC1A9593900C@newsgroup
Quote:

> Hi
> I want to know if possible to show the error message in my program
> instead
> of windows script Host messagebox when i run a vbscript from my text
> editor. Im try to put the error information in the listview like a
> compiler
>
> Thanks
> kaymaf
Are you talking about compile-time errors or run-time errors? The scripting
help file, script56.chm, talks about both types of errors. Since the program
is generally not running at 'compile time', it can't catch most of those.
It takes a great deal of discipline to properly catch all run time errors.
For some insights on the run time error problem, see this thread:
http://groups.google.com/g/78d7fef5/...e499870376eb11

-Paul Randall


My System SpecsSystem Spec
Old 10-09-2009   #3 (permalink)
kaymaf


 
 

Re: Show VBScript error message in windows Form Application

Thanks Paul

yes, im looking for the compile-time errors. I should be Ok with the link
you posted
Also, where can i get the help file script56.chm on my computer
kaymaf


My System SpecsSystem Spec
Old 10-09-2009   #4 (permalink)
Paul Randall


 
 

Re: Show VBScript error message in windows Form Application

Navigate here:
http://www.microsoft.com/downloads/en/default.aspx
and search for the file of interest. If you search for *.chm you will find
links to a number of other files with good info on various aspects of
scripting.

-Paul Randall

"kaymaf" <kaymaf@newsgroup> wrote in message
news:88B24FAD-C513-464B-9C35-985F4CC6A090@newsgroup
Quote:

> Thanks Paul
>
> yes, im looking for the compile-time errors. I should be Ok with the link
> you posted
> Also, where can i get the help file script56.chm on my computer
> kaymaf
>
>

My System SpecsSystem Spec
Old 10-09-2009   #5 (permalink)
Paul Randall


 
 

Re: Show VBScript error message in windows Form Application


"kaymaf" <kaymaf@newsgroup> wrote in message
news:88B24FAD-C513-464B-9C35-985F4CC6A090@newsgroup
Quote:

> Thanks Paul
>
> yes, im looking for the compile-time errors. I should be Ok with the link
> you posted
> Also, where can i get the help file script56.chm on my computer
> kaymaf
Each time you run a script, the compiler exits with a message when it
encounters its first error. It might be possible to write a script and that
parses the script of interest into logical lines or blocks (like Sub ... End
Sub) that have to be compiled together, and then does an execute statement
on the lines/blocks, and maybe trap the errors generated by the compile
process. I haven't tried it.

-Paul Randall



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
VBScript Form Filler VB Script
VBScript halts with out error message VB Script
error CDO.Message - VBScript VB Script
reference / manage application windows with vbscript VB Script
Windows media player show error message and doesnt play Vista music pictures video


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46