1 / 25
文档名称:

progress编程(进步编程).doc

格式:doc   大小:29KB   页数:25页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

progress编程(进步编程).doc

上传人:rjmy2261 2017/11/23 文件大小:29 KB

下载得到文件列表

progress编程(进步编程).doc

文档介绍

文档介绍:progress编程(进步编程)
PROGRESS programming
COPY self: ./blog/static/3308668420101**********/
PROGRESS programming is very simple (1)
Variable definition.
Variables must be defined before they are first used, and can be defined anywhere in the program! However, in order to increase the readability of the program, the variable definitions are placed at the beginning of the program! Here are some examples of variable definitions:
Define variable str01 as string label "DemoString" initial "hello"
Def var str02 like str01.
Def var DT01 as date extent 5.
Def var inte01 as inte format ">>>9"
Explain the first line:
Str01 is a variable name, the variable name does not repeat with the system keyword, and the character or underscore begins, such as strModel, _Model;
String represents variable types, which refer to character variables, and others like integer, date, logical, and so on;
Label is the description of variables in subsequent programs. For example, when a user needs to input this variable value, the system prompts "DemoString"";
The initial value of the initial variable
Second elements:
Def and VaR are shorthand, DEF is the abbreviation of define, VaR is the abbreviation of variable; PROGRESS supports grammatical shorthand, but beginners should write the whole first, then have experience, and then abbreviate.
The difference between like and as is that the variables are directly explained by the as, and the like follows another variable or field.
Third elements:
Extent 5, which means that the variable is an array variable.
Fourth elements:
Format ">>>9" variable format
One of the biggest benefits of specifying the format of a variable is to reserve the width, which is useful for the input of variables or the output of the report.
For example, the width of the year must be 4, then you can specify the format format "9999"".
The PROGRESS program must have a "," number at the end of each line!!!
Two, notes.
Comment is / *... *