Skip to content

Commit

Permalink
[DOCC]Simultaneous update of Simplified Chinese documentation (#1691)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfp9 authored Feb 14, 2025
1 parent bb3b819 commit 3975878
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/command_CONSTRUCTOR.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-06-27T19:54:47.839+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2025-02-14T19:11:27.825+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>ACCESS CONSTRUCTOR</title>
<keywords>
<keyword>Compile-time declaration</keyword>
Expand All @@ -14,7 +14,7 @@
<para styleclass="Heading1">CONSTRUCTOR 语句</para>
</header>
<para styleclass="Heading1">用途</para>
<para styleclass="Normal">声明访问非导出或虚(拟)实例变量的方法。</para>
<para styleclass="Normal">声明在类型实例化时自动调用的特殊方法。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Normal"><tab />[Attributes] [Modifiers] <text style="font-weight:bold;">CONSTRUCTOR</text>[([&lt;<text styleclass="Italic">idParam</text>&gt; [AS | REF|OUT|IN &lt;<text styleclass="Italic">idType</text>&gt;] [, ...])] </para>
<para styleclass="Normal"><tab />[=&gt; &lt;expression&gt;]</para>
Expand Down
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/command_DESTRUCTOR.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-06-27T19:55:00.395+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2025-02-14T19:18:32.506+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>DESTRUCTOR 语句</title>
<keywords>
<keyword>Compile-time declaration</keyword>
Expand All @@ -14,7 +14,7 @@
<para styleclass="Heading1">DESTRUCTOR 语句</para>
</header>
<para styleclass="Heading1">用途</para>
<para styleclass="Normal">声明访问非导出或虚(拟)实例变量的方法。</para>
<para styleclass="Normal">声明一种特殊方法,当垃圾回收器释放不再需要的对象所使用的内存时,该方法会被自动调用。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Normal"><tab />[Attributes] [Modifiers] <tab /><text style="font-weight:bold;">DESTRUCTOR [()]</text></para>
<para styleclass="Normal"><tab />[=&gt; &lt;expression&gt;] </para>
Expand Down
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/command_EVENT.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-06-27T19:55:37.922+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2025-02-14T19:23:11.501+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>EVENT 语句</title>
<keywords>
<keyword>Access() Methods</keyword>
Expand All @@ -15,7 +15,7 @@
<para styleclass="Heading1">EVENT 语句</para>
</header>
<para styleclass="Heading1">用途</para>
<para styleclass="Normal">声明访问非导出或虚(拟)实例变量的方法。</para>
<para styleclass="Normal">为一个类声明一个事件,当发生感兴趣的事情时,该事件可用于通知其他类或对象。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Normal"><tab />[Attributes] [Modifiers] &#160;<text style="font-weight:bold;">EVENT</text>&lt;<text styleclass="Italic">idName</text>&gt;</para>
<para styleclass="Normal"><tab />[AS &lt;<text styleclass="Italic">idType</text>&gt;] [&lt;<text styleclass="Italic">idConvention</text>&gt;]<text style="font-weight:bold;">CRLF</text></para>
Expand Down
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/command_FUNCTION.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-06-27T20:09:27.387+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2025-02-14T19:33:05.144+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>FUNCTION 语句</title>
<keywords>
<keyword>Compiledeclaration</keyword>
Expand Down Expand Up @@ -51,7 +51,7 @@
<para styleclass="Normal"></para>
<para styleclass="Normal">只需使用 STATIC FUNCTION 声明所有支持函数即可。 这样做有两个立竿见影的好处。 首先,应用程序中的其他模块不会无意中调用你的支持例程。 其次,由于静态引用是在编译时解析的,而公共引用是在链接时解析的,因此不会出现名称冲突。 例如,如果在模块 X 中声明了一个静态 Service() 函数,而在模块 Y 中声明了一个公共 Service() 函数,那么在 X 中对 Service() 的所有引用都将执行静态版本,而应用程序中对 Service() 的所有其他引用都将执行公共版本。</para>
<para styleclass="Heading1">备注</para>
<para styleclass="Normal"><text styleclass="BoldItalic" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">Start() 函数: &#160;所有应用程序都必须有一个名为 Start() 的函数或过程,或者与图形用户界面类库链接,并有一个 CLASS App 方法 Start()。 Start()是应用程序执行时的启动例程。 Start() 不能声明任何参数,在正常情况下也不应返回值。 如果要在声明语句中使用</text><link displaytype="text" defaultstyle="true" type="topiclink" href="Strong-Typing">强类型</link><text styleclass="BoldItalic" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">,则必须指定 AS USUAL PASCAL。</text></para>
<para styleclass="Normal"><text styleclass="BoldItalic" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">Start() 函数: &#160;所有应用程序都必须有一个名为 Start() 的函数或过程。函数 Start() 是应用程序执行时的启动例程。声明 Start() 时不能带有参数或者使用字符串数组参数,并且其返回值类型为 Int 或 Void 类型。</text></para>
<para styleclass="Normal"></para>
<para styleclass="Normal"><text styleclass="BoldItalic" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">通过代码块输出本地语言 &#160;创建代码块时,可以在代码块定义中访问创建实体中定义的局部变量,而无需将它们作为参数传递(即局部变量对代码块是可见的)。 利用这一事实以及可以将代码块作为参数传递的事实,就可以导出局部变量。 例如</text>:</para>
<para styleclass="Code Example"><text style="font-weight:bold; font-style:normal; color:#ff0000;">FUNCTION</text><text style="font-weight:bold; font-style:normal; color:#000000;"> One</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">()</text><text style="font-weight:bold; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">EXPORT</text><text style="font-weight:bold; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">LOCAL</text><br/><tab /><text style="font-weight:bold; font-style:normal; color:#ff0000;">LOCAL</text><text style="font-weight:bold; font-style:normal; color:#000000;"> nVar </text><text style="font-weight:bold; font-style:normal; color:#0000ff;">:=</text><text style="font-weight:bold; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">10</text><text style="font-weight:bold; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">AS</text><text style="font-weight:bold; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">INT</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">,</text><text style="font-weight:bold; font-style:normal; color:#000000;"> cbAdd </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">AS</text><text style="font-weight:bold; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">CODEBLOCK</text><br/><tab /><text style="font-weight:bold; font-style:normal; color:#000000;">cbAdd </text><text style="font-weight:bold; font-style:normal; color:#0000ff;">:=</text><text style="font-weight:bold; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">{</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">|</text><text style="font-weight:bold; font-style:normal; color:#000000;">nValue</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">|</text><text style="font-weight:bold; font-style:normal; color:#000000;"> nValue </text><text style="font-weight:bold; font-style:normal; color:#0000ff;">+</text><text style="font-weight:bold; font-style:normal; color:#000000;"> nVar</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">}</text><br/><tab /><text style="font-weight:bold; font-style:normal; color:#0000ff;">?</text><text style="font-weight:bold; font-style:normal; color:#000000;"> NextFunc</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">(</text><text style="font-weight:bold; font-style:normal; color:#000000;">cbAdd</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">)</text><tab /><tab /><tab /><text style="font-weight:bold; font-style:normal; color:#ff00ff;">// Result: &#160;210</text><br/><br/><text style="font-weight:bold; font-style:normal; color:#ff0000;">FUNCTION</text><text style="font-weight:bold; font-style:normal; color:#000000;"> NextFunc</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">(</text><text style="font-weight:bold; font-style:normal; color:#000000;">cbAddEmUp</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">)</text><br/><tab /><text style="font-weight:bold; font-style:normal; color:#ff0000;">RETURN</text><text style="font-weight:bold; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">(</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">EVAL</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">(</text><text style="font-weight:bold; font-style:normal; color:#000000;">cbAddEmUp</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">,</text><text style="font-weight:bold; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#0000ff;">200))</text></para>
Expand Down
8 changes: 4 additions & 4 deletions docs/Help_ZH-CN/Topics/command_METHOD.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-07-26T10:56:03.521+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2025-02-14T19:41:00.411+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>METHOD 语句</title>
<keywords>
<keyword>Classes<keyword>declaring() Methods</keyword></keyword>
Expand Down Expand Up @@ -41,9 +41,6 @@
<para styleclass="Code Example">SELF:&lt;idMethod&gt;([&lt;uArgList&gt;])</para>
<para styleclass="Normal">类、实例变量(参见本指南中的 <link displaytype="text" defaultstyle="true" type="topiclink" href="command_CLASS">CLASS 语句</link>)和方法是面向对象编程的基本单元。 您将在应用程序中使用方法来组织特定对象类的计算代码块。</para>
<para styleclass="Heading1">备注</para>
<para styleclass="Normal"><text styleclass="BoldItalic" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">Start() 方法: &#160;所有应用程序都必须有一个名为 Start() 的函数或过程。 </text></para>
<para styleclass="Normal"><text styleclass="BoldItalic" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">Start() 是应用程序执行时的启动例程。 Start()必须声明为不带参数或带字符串数组参数,并且必须具有 Int 返回值或 Void 类型。</text></para>
<para styleclass="Normal"></para>
<para styleclass="Normal">VO 兼容性:</para>
<para styleclass="Normal"></para>
<para styleclass="Normal">VO 有两个特殊的方法名称,用于构造和销毁类对象: Init() 和 Axit()。</para>
Expand Down Expand Up @@ -89,6 +86,9 @@
<para styleclass="Normal"></para>
<para styleclass="Normal"><text styleclass="BoldItalic" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">参数:除了在 METHOD 声明语句中指定方法参数外,还可以使用 PARAMETERS 语句来指定参数。 但不推荐这种做法,因为它效率较低,而且不提供编译时完整性验证。 有关详细信息,请参阅本指南中的 PARAMETERS 语句。</text></para>
<para styleclass="" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:16px; margin-bottom:0px; margin-left:0px; line-height:1.00; background-color:transparent; white-space:normal; page-break-inside:auto; page-break-after:auto; border:none; tabstops:64px left ;"><snippet src="__IncludeStrongTyping" inline="false"/></para>
<para styleclass="Heading1">用单一表达式代替主体(main body)的方法</para>
<para styleclass="Normal">方法(以及其他所有可以包含代码的实体类型)可以在定义实体的同一行代码中使用 =&gt; 操作符,而不是使用正文(regular body),将代码包含为一个单一表达式。单一表达式可以返回值,也可以不返回值:</para>
<para styleclass="Code Example"><text style="font-weight:bold; font-style:normal; color:#ff0000;">METHOD</text><text style="font-weight:normal; font-style:normal; color:#000000;"> SimpleMethod() </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">AS VOID</text><text style="font-weight:normal; font-style:normal; color:#000000;"> =&gt; </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">SELF</text><text style="font-weight:normal; font-style:normal; color:#000000;">:CallAnotherMethod()</text><br/><text style="font-weight:bold; font-style:normal; color:#ff0000;">METHOD</text><text style="font-weight:normal; font-style:normal; color:#000000;"> SimpleMethodWithReturnValue() </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">AS INT</text><text style="font-weight:normal; font-style:normal; color:#000000;"> =&gt; </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">SELF</text><text style="font-weight:normal; font-style:normal; color:#000000;">:nSomeIvar + 1</text></para>
<para styleclass="Heading1">示例</para>
<para styleclass="Normal">该示例创建了一个二维坐标类,其中包含初始化坐标、绘制表格和绘制点的方法:</para>
<para styleclass="Normal"></para>
Expand Down
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/command_OPERATOR.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-06-27T19:55:53.239+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2025-02-14T19:13:05.016+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>OPERATOR 语句</title>
<keywords>
<keyword>Compile-time declaration</keyword>
Expand All @@ -14,7 +14,7 @@
<para styleclass="Heading1">OPERATOR 语句</para>
</header>
<para styleclass="Heading1">用途</para>
<para styleclass="Normal">声明访问非导出或虚拟实例变量的方法。</para>
<para styleclass="Normal">为一个类声明一个运算符方法,定义 “+”、“-”、“++”等标准运算符在作为参数与类的实例一起使用时的操作方式</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Normal"><tab />[Attributes] [Modifiers] <tab /><text style="font-weight:bold;">OPERATOR </text>&lt;<text styleclass="Italic">operatortype</text>&gt;</para>
<para styleclass="Normal"><tab />[([&lt;<text styleclass="Italic">idParam</text>&gt; [AS | REF &lt;<text styleclass="Italic">idType</text>&gt;] [, ...])] </para>
Expand Down
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/command_PROPERTY.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-06-27T19:56:00.741+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2025-02-14T19:21:38.391+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>PROPERTY 语句</title>
<keywords>
<keyword>Access() Methods</keyword>
Expand All @@ -21,7 +21,7 @@
<para styleclass="Heading1">PROPERTY 语句</para>
</header>
<para styleclass="Heading1">用途</para>
<para styleclass="Normal">声明访问非导出或虚拟实例变量的方法。</para>
<para styleclass="Normal">为类声明一个属性,该属性可用于读取、写入和计算类中的数据。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Normal"><tab />[Attributes] [Modifiers] <text style="font-weight:bold;">PROPERTY</text>&lt;<text styleclass="Italic">idName</text>&gt;</para>
<para styleclass="Normal"><tab />[([&lt;<text styleclass="Italic">idParam</text>&gt; [AS | REF &lt;<text styleclass="Italic">idType</text>&gt;] [, ...])] </para>
Expand Down

0 comments on commit 3975878

Please sign in to comment.