[InstallScript Language Reference]goto
来源:互联网 发布:mac双系统引导修复win 编辑:程序博客网 时间:2024/05/22 03:11
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.
InstallScript supports a special form of the if statement that can be used only with goto statements:
if condition goto labelname;
This special structure is has the following features:
- The condition must be followed by a goto statement.
- The keyword then is not used.
- The keyword endif is not used.
In the following example, the user will be prompted to enter a company name as long as szSrc is a null string (“”).
Name:AskText("Company name:", "", szSrc);
if (szSrc = "") goto Name;
- [InstallScript Language Reference]goto
- [InstallScript Language Reference]Setup Scripts
- Language Reference
- Flex ActionScript Language Reference
- Assembly Language Reference
- LotusScript Language Quick-reference
- LLVM Language Reference Manual
- JPQL Language Reference
- jade Language Reference
- 《AspectC++ Language Reference》Chapter 8
- Intel X86 assembly language reference
- The Unified Modeling Language Reference Manual
- C Language Reference - C 语言参考 - HackerJLY
- Oracle PL/SQL Language Pocket Reference
- 《AspectC++ Language Reference》Chapter 2 Basic Concepts
- 《AspectC++ Language Reference》Chapter 5-7
- LLVM Language Reference Manual---阅读笔记
- LLVM Language Reference Manual(参考指南)
- 思科 NAT配置
- Linux中断处理体系结构分析(一)
- Reseeding the identity value:
- 企业信息化战略规划方法
- PHP 测验
- [InstallScript Language Reference]goto
- linux中断处理体系结构分析(二)
- simple i18n editor
- Java 网络编程之 (解析URL)
- ASP 测验
- nginx源码分析—模块及其初始化
- 存储过程
- 远程桌面–外网访问内网多台电脑
- SQL 测验