A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Supressing Debug



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 1st 06, 05:18 PM posted to microsoft.public.outlook.program_forms
Hollis D. Paul
external usenet poster
 
Posts: 66
Default Supressing Debug

In article ,
=?Utf-8?B?UiBGb3VydA==?= wrote:
And is it true that there is no error handler in VB Script?

You have to code your own error handler. Most just put in On Error, do
next.

Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA



  #2  
Old March 1st 06, 08:20 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Supressing Debug

I think you mean On Error Resume Next, Hollis.

Robert, once you add On Error Resume Next, you can also add checkpoints where you think the code might encounter an error and test for the error condition:

If Err 0 Then
' there is an error
' do something about it
' then clear it
Err.Clear
End If

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Hollis D. Paul" wrote in message ...
In article ,
=?Utf-8?B?UiBGb3VydA==?= wrote:
And is it true that there is no error handler in VB Script?

You have to code your own error handler. Most just put in On Error, do
next.

Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA



  #3  
Old March 1st 06, 09:35 PM posted to microsoft.public.outlook.program_forms
robert
external usenet poster
 
Posts: 127
Default Supressing Debug

Thanks Sue,

I had already stumbled my way through that. Pretty cludgy though, of course
my code has no places where an error might occur....ahem!

"Sue Mosher [MVP-Outlook]" wrote:

I think you mean On Error Resume Next, Hollis.

Robert, once you add On Error Resume Next, you can also add checkpoints where you think the code might encounter an error and test for the error condition:

If Err 0 Then
' there is an error
' do something about it
' then clear it
Err.Clear
End If

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Hollis D. Paul" wrote in message ...
In article ,
=?Utf-8?B?UiBGb3VydA==?= wrote:
And is it true that there is no error handler in VB Script?

You have to code your own error handler. Most just put in On Error, do
next.

Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA




  #4  
Old March 2nd 06, 05:18 AM posted to microsoft.public.outlook.program_forms
Hollis D. Paul
external usenet poster
 
Posts: 66
Default Supressing Debug

In article , Sue Mosher
[MVP-Outlook] wrote:
I think you mean On Error Resume Next, Hollis.

Yes, indeed I did. I was groping for the right words, but they
wouldn't appear at my fingertips. But I figured any VB programmer
could figure it out. Thanks for filling in the senior moment lapse.

Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.