ENDBOX

Summary


Endbox displays a serious error box.

Syntax

   [  Local  ]  Endboxlist_exprg  [ Titledexp_title ] Sleepleadtime

Parameters

Element

Description

Restrictions

list_exprg

List of generalised expressions separated by the character ','.

The expressions must be alpha-numeric and their number limited to 255.

exp_title

Alphanumeric expression for the box title.

length<= 50

lead-time

integer expression expressing a lead-time.

lead-time >=0

Examples

   # Opening of a file with error management (it is possible to
  # test for the existence of the file by the filinfo function)
    FLAG_ERREUR=0
    # If an error occurs, go to the label PB_OUVERTURE
    Onerrgo PB_OUVERTURE
    # Opening of a sequential file
    Openi filpath("TXT","TEST","txt")
    # No branching on error now
    Onerrgo
    If FLAG_ERREUR
       # Stop if an error occurs
           End
  Endif
   #
   # ... rest of process ...
   #
   # Label defined by the GESERR process
    PB_OUVERTURE
       Endboxerrmes$(errn)
       FLAG_ERREUR = 1
    Resume                 :# Return to the line following the error

Description and comments

Endbox is used to declare a box serving to display a serious error message.

At both the technical level and the interface level, the Endbox is based on the same principle as the Errbox instruction, with a differing pictogram (red cross in the place of the yellow triangle).

It is necessary to reserve it for the case of blocking errors.

Remarks

With the Web client, the receipt of an Endbox message during the connection phase leads to the failure to open the client window, which will lead to a large increase in the network traffic.

It is for this reason that password errors will be returned with an Endbox

On the other hand, in all the other phases of the functioning, this type of error is interpreted like the other errors.

Associated errors

Error

Description

ERMODE (10)

- The expressions are not alphanumeric.
- the given indexes are not numeric.

ERINDI ( 8)

Error in the index ranges.

ERDIM (55)

Too many dimensions given.

PLUMEM (31)

No more memory available.

Associated keywords

ONERRGO - WRNBOX - INFBOX - QSTBOX - SELBOX - INPBOX - DLGBOX - MESBOX - ERRBOX


SUMMARY


Copyright © Sage 1999 - 2007