8 Replies - 637 Views - Last Post: 19 May 2009 - 10:23 PM Rate Topic: -----

#1 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Error Terms

Posted 19 May 2009 - 02:11 AM

Hi.
I know how to use these terms but honestly have little depth in understanding the meaning of them. Could someone please give an overview on the meanings.

Err.Raise
Err.Number
Err.Source
Err.Description
Err.HelpFile
Err.HelpContext

Thanks. And, I really dont want some one just giving a link. It may help but its in "professional" terms that an everyday person would not use.
Is This A Good Question/Topic? 0
  • +

Replies To: Error Terms

#2 paperclipmuffin  Icon User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Re: Error Terms

Posted 19 May 2009 - 02:19 AM

Well, not knowing how much you know, I can say that helpfile is the property that determines the system path to the objects help file. Help files are particular kinds of files that I know can be made in Enterprise edition, but I'm not sure about the other VB editions.

If you were looking for something a lot more in-depth, I'm happy to help. Just message me. :P
Was This Post Helpful? 0
  • +
  • -

#3 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: Error Terms

Posted 19 May 2009 - 02:21 AM

Yes please. I'll show you the code that I have used it for, even.
ErrorHandler:
    If Err.Number = 6 Then 
        Err.Clear					
    Else
        Err.Raise Err.Number, Err.Source, Err.Description, Err.HelpFile, Err.HelpContext
    End If
End Sub


Was This Post Helpful? 0
  • +
  • -

#4 paperclipmuffin  Icon User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Re: Error Terms

Posted 19 May 2009 - 02:36 AM

Hehe. This is what I live for.

Hey, why does it say you are banned????

In the words of the VB 6.0 programmer's guide:

You can set the HelpFile programmaticaly. The following code would specify a HTML help file:

Private Sub Form_Load()
   App.Helpfile = App.Path & "\foo.chm"
End Sub


The ErrObject object also has a helpfile property, allowing you to specify a different help file for error messages.

Need any more?

This post has been edited by paperclipmuffin: 19 May 2009 - 02:36 AM

Was This Post Helpful? 1
  • +
  • -

#5 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: Error Terms

Posted 19 May 2009 - 02:38 AM

Quote

The ErrObject object also has a helpfile property, allowing you to specify a different help file for error messages.

That line just sums it all up. I see what you are getting at. Thanks.
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5248
  • View blog
  • Posts: 27,072
  • Joined: 10-May 07

Re: Error Terms

Posted 19 May 2009 - 02:41 AM

View Postpaperclipmuffin, on 19 May, 2009 - 03:36 AM, said:

Hey, why does it say you are banned????

He's not banned, he put that there himself. You can set them after 500 posts.

My guess would be he's trying to draw attention to himself as a bad boy. :P :^:

To do my best to keep this post on topic, in C/C++ there is an error header file that defines all of the errors for that compiler, so you can use predefined error messages such as why a file open would have failed, why a file write would have failed, & so on. Is there anything like that for VB?
Was This Post Helpful? 0
  • +
  • -

#7 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: Error Terms

Posted 19 May 2009 - 02:52 AM

View Postpaperclipmuffin, on 19 May, 2009 - 07:36 PM, said:

Hey, why does it say you are banned???


Because I shouldcould be.
Was This Post Helpful? 0
  • +
  • -

#8 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

Re: Error Terms

Posted 19 May 2009 - 08:14 PM

Google is AMAZING!
Was This Post Helpful? 0
  • +
  • -

#9 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: Error Terms

Posted 19 May 2009 - 10:23 PM

And You are too! :P Thanks for the link, even though it was not recommended! :D
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1