InstallShield 2019 » InstallScript Language Reference
The goto keyword is used to branch directly to the statement immediately following a specified label. In the following code fragment, the goto statement causes execution to continue with the AskText statement.
Name:
AskText("Company name:", "", szSrc);
if (szSrc = "") then
MessageBox("Please enter the company name.", SEVERE);
goto Name;
endif;
A goto statement in the main program must specify a label that has been declared in the main program. A goto statement in a function must specify a label that has been declared in that function.
Note • You cannot use a goto statement within a try...catch...endcatch statement.
See Also
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |