GoTo sakinys
Tęsiamas programos vykdymas naudojant Sub arba Funkcija nuo žyme nurodytos procedūrų eilutės.
Sintaksė:
GoTo label[:]
Parametrai:
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 (":").
Negalite naudoti GoTo sakinio norėdami išeiti iš paprogramės Sub arba funkcijos Function.
Pavyzdys:
Sub/Function
' sakinių blokas
GoTo Label1
Label2:
' sakinių blokas
Exit Sub/Function
Label1:
' sakinių blokas
GoTo Label2
End Sub/Function