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

HANDLING ERRORS

Different projects require varying solutions for handling the errors that the validation process brings to light. In some cases, you may wish to provide a graphical indicator (for example, a red X next to the field containing the error), while in others a text message may suffice.

The conditional statement itself (within the validation routine) usually determines how to handle any error that it detects. Take, for example, the following:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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