• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The Err.Raise Method

Two situations that can possibly arise from time to time involve creating errors and simulating errors. The thought of actually creating or simulating an error seems ludicrous to the beginning programmer. Doesn’t the novice programmer already have enough errors to tackle? What situations would necessitate such decisions?

Suppose you wanted to send your user a message if a value exceeded a certain number, or suppose you wanted to test a certain error to determine the best way to handle it. In the former situation, you need to create an error.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint