Instruci贸n GoTo

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

Sintaxe:


GoTo label[:]

Par谩metros:

label: A line identifier indicating where to continue execution. The scope of a label is 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 end it with a colon (":").

Icona Aviso

Non 茅 pos铆bel usar a instruci贸n GoTo para saltar f贸ra dun Sub ou funci贸n.


Exemplo:


    Sub/Function
       ' bloque de instruci贸ns
       GoTo Label1
    Label2:
       ' bloque de instruci贸ns
       Exit Sub/Function
    Label1:
       ' bloque de instruci贸ns
       GoTo Label2
    End Sub/Function

Precisamos da s煤a axuda!