Simples Assim

Handling Errors in Menu Programs in ABL

leave a comment »

Caller.p

DEF INPUT PARAM p-int AS INT NO-UNDO.

CASE p-int:

  WHEN 1 THEN DO:
    RUN Callee.p NO-ERROR.
  END.

  WHEN 2 THEN DO:
    RUN Callee.p NO-ERROR.
  END.

END CASE.

IF ERROR-STATUS:ERROR THEN
  RETURN RETURN-VALUE.

Callee.p

RETURN ERROR "An error has occured".

http://communities.progress.com/pcom/docs/DOC-16295

Advertisement

Written by Fernando Ribeiro

March 7, 2010 at 9:15 pm

Posted in Software

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 781 other followers