GoTo instrukzioa

Continues program execution within a Sub or Function at the procedure line indicated by a label.

Sintaxia:


GoTo label[:]

Parametroak:

label: A line identifier indicating where to continue execution. The scope of a label in that of the routine it belongs to.

Use the GoTo statement to instruct LibreOffice Basic to continue program execution at another place within the procedure. The position must be indicated by a label. To set a label, assign a name, and then and end it with a colon (":").

Abisu-ikonoa

You cannot use the GoTo statement to jump out of a Sub or Function.


Adibidea:


    Sub/Function
       ' instrukzioen blokea
       GoTo Label1
    Label2:
       ' instrukzioen blokea
       Exit Sub/Function
    Label1:
       ' instrukzioen blokea
       GoTo Label2
    End Sub/Function

Emaguzu laguntza!