END

Sommaire


End is used to stop execution of a routine or sub-programme called by Call.

 

Syntax

End

 

Examples

# The absolute end... of my routine as well
End
# Call a sub-programme
 Call AFFICH('Coucou')
End
# the sub-programme
 Subprog AFFICH(MESSAGE)
   Value Char MESSAGE()
   Infbox MESSAGE
End           : # return to routine

 

Description and comments

End interrupts progress:

·         of a routine, returning to the menu – whether a traditional routine or a branch in the event of an error (called by Onergo) or for an interrupt (called by Onintgo);

·         of a sub-programme called by Call, returning to the routine or sub-programme concerned.

In a subprogramme called by Call, the instruction End never cancels a transaction initiated by the calling routine (or sub-programme).

In all other cases, if a transaction is on-going when End is met, it will be automatically cancelled by Rollback. The user will be warned of this. This applies also to routines initiated by Onerrgo, Onintgo, actihgup. The same applies if the physical end of the routine is met.

 

Associated errors

No associated errors.

 

Associated key words

CALL - SUBPROG - ONERRGO - ONINTGO - TRBEGIN - ROLLBACK - ACTIHGUP


CONTENTS

 


Copyright © Sage 1999 - 2007