Skip to Content
author's profile photo Former Member
Former Member

priority of events

Hello friends,

What is the priority of triggering events ?

i have following events,

Initialization > at selection-screen > strat-of-selection > end-of-selection >top-of-page > end-of-page.

Note :i have used following code,

INITIALIZATION.

WRITE '1'.

TOP-OF-PAGE.

WRITE '5'.

result is :

5

1

So, which event called first and which one is at last ?

Regards,

N.Master

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2007 at 03:13 PM

    Hi

    Though the sequence of the events is

    INITIALIZATION

    AT SELECTION-SCREEN OUTPUT

    AT SELECTION-SCREEN

    START-OF–SELECTION.

    TOP-OF-PAGE

    END-OF-PAGE

    END-OF-SELECTION.

    the first write statement in Top of page is triggered first.

    so you got 5 first

    generally we don't write WRITE statements in Initialisation and At selection-screen.

    we write the in start-of-selection,top-of-page and end-of-selection and end-of-page.

    Reward points for useful Answers

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2007 at 02:59 PM

    Hi Nimesh,

    When the First Write statement is triggered in the code at that time TOP-OFPAGE event is called and what ever coding is there will be executed first.

    Here the code start with INITIALIZATION as it is the first event, but there it finds WRITE statement so it triggers TOP-OF-PAGE and process it first.

    Hope it is clear.

    reward points if useful.

    Regards,

    Atish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.