Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/Help_ZH-CN/Topics/Command_CLEAR_SCREEN.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
</header>
<para styleclass="Normal"><snippet src="__CommandInclude" inline="false"/></para>
<para styleclass="Heading1">用途</para>
<para styleclass="Normal">接收键盘输入并将其赋值给内存变量。</para>
<para styleclass="Normal">清除屏幕并将光标定位在左上角。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Normal">CLEAR SCREEN</para>
<para styleclass="Heading1">描述</para>
<para styleclass="Body Text">命令 CLEAR 可以擦除屏幕。</para>
<para styleclass="Body Text">执行 CLEAR 命令后,光标将定位在 0, 0 处,并更新函数 Row() 和 Col()。</para>
<para styleclass="Body Text">命令 CLEAR SCREEN 可以擦除屏幕。<br/>执行该命令后,光标将定位在 0, 0 处,并更新函数 Row() 和 Col()。预处理器会将该命令转换为对 <link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_RT_Functions_Cls.htm" domain="XSharpRef.chm">Cls()</link> 的调用,随后调用 <link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_RT_Functions_SetPos.htm" domain="XSharpRef.chm">SetPos()</link>(0,0)。</para>
<para styleclass="Heading1">示例</para>
<para styleclass="Normal">此示例使用 ACCEPT 获取用户的键盘输入:</para>
<para styleclass="Normal">此示例在设置颜色后清除屏幕:</para>
<para styleclass="Code Example"><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">FUNCTION</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;"> Start </text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">AS</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">VOID</text><br/><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">SET</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">COLOR</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">TO</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;"> gr+/B &#160;</text><text style="font-weight:bold; font-style:italic; text-decoration:none; color:#339966;">// Yellow on Blue</text><br/><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">CLEAR</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">SCREEN</text><br/><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">? &quot;Hello world&quot;</text></para>
<para styleclass="Normal"><snippet src="__IncludeLibRT" inline="false"/></para>
</body>
Expand Down
1 change: 1 addition & 0 deletions docs/Help_ZH-CN/Topics/Command_SET_ALTERNATE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<para styleclass="Heading1">语法</para>
<para styleclass="Normal">SET ALTERNATE TO [&lt;cFileName&gt; [ADDITIVE] ] </para>
<para styleclass="Normal">SET ALTERNATE ON | OFF | &lt;lToggle&gt; </para>
<para styleclass="Normal">CLOSE ALTERNATE</para>
<para styleclass="Normal"></para>
<para styleclass="Heading1">参数</para>
<para styleclass="List">&lt;cFileName&gt;<tab />指定记录屏幕输出的 ASCII 文件名称。文件名必须包含驱动器和路径。文件名既可以是字面文件名,也可以是括号中的字符表达式。如果指定的文件名没有文件扩展名,则默认使用扩展名&quot;.TXT&quot;。<br/></para>
Expand Down
1 change: 1 addition & 0 deletions docs/Help_ZH-CN/Topics/Command_SET_TEXTMERGE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<para styleclass="" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; 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,128px left,192px left,256px left,320px left,384px left,448px left,511px left,575px left ;"><text styleclass="" style="font-family:&apos;Courier New&apos;; font-size:10pt; color:#000000;">SET TEXTMERGE [ON | OFF] [TO [FileName] MEMVAR VarName [ADDITIVE]]</text></para>
<para styleclass="" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; 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,128px left,192px left,256px left,320px left,384px left,448px left,511px left,575px left ;"><text styleclass="" style="font-family:&apos;Courier New&apos;; font-size:10pt; color:#000000;"> &#160; [WINDOW WindowName] [SHOW | NOSHOW]</text></para>
<para styleclass="" style="text-align:left; text-indent:0px; margin-top:0px; margin-right:0px; 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:none;"></para>
<para styleclass="Normal">X# 预处理器目前仅支持 SET TEXTMERGE ON | OFF | &amp;。上面显示的 TO、MEMVAR、ADDITIVE、WINDOW 以及 SHOW | NOSHOW 子句目前尚不支持。要更改分隔符,请参见 <link displaytype="text" defaultstyle="true" type="topiclink" href="command_SET_TEXTMERGE_DELIMITERS">SET TEXTMERGE DELIMITERS</link>。要捕获文本块的输出,请参见 <link displaytype="text" defaultstyle="true" type="topiclink" href="command_TEXT">TEXT</link>。</para>
<para styleclass="Heading1">参数</para>
<para styleclass="List">ON <tab />指定由文本合并分隔符包围的任何字段、变量、数组元素、函数或表达式在放在 \ 或 \\ 之后,或 TEXT 和 ENDTEXT 之间时,都要进行评估和输出。</para>
<para styleclass="List"></para>
Expand Down
6 changes: 6 additions & 0 deletions docs/Help_ZH-CN/Topics/SCAN-Command.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<para styleclass="Heading1"><text styleclass="Body Text">SCAN 会自动将记录指针移动到符合指定条件的下一条记录,并执行命令块。</text></para>
<para styleclass="Body Text">您可以在同一行的ENDSCAN后面添加注释。在程序编译和执行过程中,注释将被忽略。</para>
<para styleclass="Body Text"></para>
<para styleclass="Body Text">预处理器将 SCAN 转换为对 DbLocate() 的调用,随后是 DO WHILE Found() 循环。ENDSCAN 被转换为对 DbContinue() 的调用,随后是 ENDDO。因此,扫描遵循与 <link displaytype="text" defaultstyle="true" type="topiclink" href="command_LOCATE">LOCATE</link> 和 <link displaytype="text" defaultstyle="true" type="topiclink" href="command_CONTINUE">CONTINUE</link> 命令相同的规则。END SCAN 是 ENDSCAN 的同义词。</para>
<para styleclass="Body Text"></para>
<para styleclass="Body Text">SCAN ... ENDSCAN确保在达到ENDSCAN时,Visual FoxPro 重新选择 SCAN ... ENDSCAN循环开始时的当前表。</para>
<para styleclass="Body Text"></para>
<para styleclass="Heading1">示例</para>
Expand All @@ -51,5 +53,9 @@
<para styleclass="Body Text"><link displaytype="text" defaultstyle="true" type="topiclink" href="command_FOR">FOR Statement</link></para>
<para styleclass="Body Text"><link displaytype="text" defaultstyle="true" type="topiclink" href="command_FOREACH">FOREACH </link><link displaytype="text" defaultstyle="true" type="topiclink" href="command_DO_CASE">Statement</link></para>
<para styleclass="Body Text"><link displaytype="text" defaultstyle="true" type="topiclink" href="command_SWITCH">SWITCH Statement</link></para>
<para styleclass="Body Text"><link displaytype="text" defaultstyle="true" type="topiclink" href="command_LOCATE">LOCATE Command</link></para>
<para styleclass="Body Text"><link displaytype="text" defaultstyle="true" type="topiclink" href="command_CONTINUE">CONTINUE Command</link></para>
<para styleclass="Body Text"><link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_RT_Functions_DbLocate.htm" domain="XSharpRef.chm">DbLocate()</link></para>
<para styleclass="Body Text"><link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_RT_Functions_DbContinue.htm" domain="XSharpRef.chm">DbContinue()</link></para>
</body>
</topic>
1 change: 1 addition & 0 deletions docs/Help_ZH-CN/Topics/command_CLOSE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<para styleclass="Normal">不带选项的 CLOSE 关闭当前数据库和相关文件。 其他一些操作也会关闭文件,但最好在使用完毕后明确关闭文件。</para>
<para styleclass="Body Text"><snippet src="__IncludeLibRT" inline="false"/></para>
<para styleclass="Heading1">参见</para>
<para styleclass="Normal">FoxPro 版本:<link displaytype="text" defaultstyle="true" type="topiclink" href="command_CLOSE_DATABASES">CLOSE DATABASES</link>, <link displaytype="text" defaultstyle="true" type="topiclink" href="command_CLOSE_TABLES">CLOSE TABLES</link></para>
<para styleclass="Normal"><link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_RT_Functions_DbCloseArea.htm" domain="XSharpRef.chm">DBCloseArea()</link>, <link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_Core_Functions_FClose.htm" domain="XSharpRef.chm">FClose()</link>, <link displaytype="text" defaultstyle="true" type="topiclink" href="command_SET_INDEX">SET INDEX</link>, <link displaytype="text" defaultstyle="true" type="topiclink" href="command_USE">USE</link></para>
<para styleclass="Normal"></para>
</body>
Expand Down
1 change: 1 addition & 0 deletions docs/Help_ZH-CN/Topics/command_COUNT.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<para styleclass="Code Example"><text style="font-weight:bold; font-style:normal; color:#ff0000;">USE</text><text style="font-weight:normal; font-style:normal; color:#000000;"> branch INDEX branch </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">NEW</text><br/><text style="font-weight:bold; font-style:normal; color:#ff0000;">SEEK</text><text style="font-weight:normal; font-style:normal; color:#000000;"> 100</text><br/><text style="font-weight:bold; font-style:normal; color:#ff0000;">USE</text><text style="font-weight:normal; font-style:normal; color:#000000;"> sales INDEX salesbranch </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">NEW</text><br/><text style="font-weight:bold; font-style:normal; color:#ff0000;">SEEK</text><text style="font-weight:normal; font-style:normal; color:#000000;"> 100</text><br/><text style="font-weight:bold; font-style:normal; color:#ff0000;">COUNT</text><text style="font-weight:normal; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">TO</text><text style="font-weight:normal; font-style:normal; color:#000000;"> Branch-&gt;Count </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">WHILE</text><text style="font-weight:normal; font-style:normal; color:#000000;"> Sales-&gt;Branch = 100</text></para>
<para styleclass="Body Text"><snippet src="__IncludeLibRt" inline="false"/></para>
<para styleclass="Heading1">参见</para>
<para styleclass="Normal">FoxPro 版本:<link displaytype="text" defaultstyle="true" type="topiclink" href="command_COUNT_FoxPro">COUNT (FoxPro)</link></para>
<para styleclass="Normal"><link displaytype="text" defaultstyle="true" type="topiclink" href="command_AVERAGE">AVERAGE</link>, <link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_RT_Functions_DbEval.htm" domain="XSharpRef.chm">DBEval()</link>, <link displaytype="text" defaultstyle="true" type="topiclink" href="command_SUM">SUM</link>, <link displaytype="text" defaultstyle="true" type="topiclink" href="command_TOTAL">TOTAL</link></para>
<para styleclass="Normal"></para>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/Help_ZH-CN/Topics/command_SAVE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<para styleclass="Heading1">用途</para>
<para styleclass="Normal">将当前例程中可见的公共和私有内存变量复制到磁盘文件中。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Code with box">SAVE TO &lt;xcTargetFile&gt; [ALL [LIKE | EXCEPT &lt;Skeleton&gt;]</para>
<para styleclass="Code with box">SAVE TO &lt;xcTargetFile&gt; [ALL [LIKE | EXCEPT &lt;Skeleton&gt;]]<br/>SAVE ALL LIKE | EXCEPT &lt;Skeleton&gt; TO &lt;xcTargetFile&gt;</para>
<para styleclass="Heading1">参数</para>
<para styleclass="List">&lt;xcTargetFile&gt;<tab />文件名,包括可选的驱动器、目录和扩展名。 有关文件搜索和创建规则,请参阅 SetDefault() 和 SetPath()。 默认扩展名为 .MEM。</para>
<para styleclass="List"></para>
Expand Down
3 changes: 3 additions & 0 deletions docs/Help_ZH-CN/Topics/command_SET_DATE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<para styleclass="Normal">从包含相应日期格式的常量列表中进行选择,更改决定 &lt;%APP%&gt; 日期格式的设置。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Code with box">SET DATE [TO] &lt;kCountrySetting&gt;</para>
<para styleclass="Heading1">参数</para>
<para styleclass="List"><text styleclass="Italic">kCountrySetting</text><tab />以下关键字之一:<br/>AMERICAN 或 MDY (MM/DD/YY)<br/>ANSI (YY.MM.DD)<br/>BRITISH 或 DMY (DD/MM/YY)<br/>FRENCH (DD/MM/YY)<br/>GERMAN (DD.MM.YY)<br/>ITALIAN 或 DUTCH (DD-MM-YY)<br/>JAPANESE、TAIWAN 或 YMD (YY/MM/DD)<br/>USA (MM-DD-YY)<br/>SYSTEM 或 WINDOWS (Windows 区域设置的格式)<br/>求值为日期格式字符串(如 DD.MM.YYYY)的宏 (&amp;) 将传递给 SetDateFormat()。</para>
<para styleclass="Heading1">描述</para>
<para styleclass="Normal">SET DATE 在功能上等同于 SetDateCountry()。 </para>
<para styleclass="Heading1">示例</para>
Expand All @@ -26,6 +28,7 @@
<para styleclass="Code Example">SET DATE German<br/>? Today()<tab /><tab /><tab /><tab />// Result: &#160;15.10.19<br/>SET DATE Ansi<br/>? Today()<tab /><tab /><tab /><tab />// Result: &#160;19.10.15</para>
<para styleclass="Body Text"><snippet src="__IncludeLibRt" inline="false"/></para>
<para styleclass="Heading1">参见</para>
<para styleclass="Normal">FoxPro 版本:<link displaytype="text" defaultstyle="true" type="topiclink" href="command_SET_DATE_FoxPro">SET DATE (FoxPro)</link></para>
<para styleclass="Normal"><link displaytype="text" defaultstyle="true" type="topiclink" href="html\Overload_XSharp_RT_Functions_CToD.htm" domain="XSharpRef.chm">CToD()</link><text styleclass="Bold" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">, </text><link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_RT_Functions_DToC.htm" domain="XSharpRef.chm">DToC()</link>, <link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_RT_Functions_DToS.htm" domain="XSharpRef.chm">DToS()</link><text styleclass="Bold" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">, </text><link displaytype="text" defaultstyle="true" type="topiclink" href="html\Overload_XSharp_Core_Functions_SetCentury.htm" domain="XSharpRef.chm">SetCentury()</link><text styleclass="Bold" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">, </text><link displaytype="text" defaultstyle="true" type="topiclink" href="html\Overload_XSharp_Core_Functions_SetDateCountry.htm" domain="XSharpRef.chm">SetDateCountry()</link><text styleclass="Bold" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">, </text><link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_Core_Functions_SetDateFormat.htm" domain="XSharpRef.chm">SetDateFormat()</link><text styleclass="Bold" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">, </text><link displaytype="text" defaultstyle="true" type="topiclink" href="html\Overload_XSharp_Core_Functions_SetEpoch.htm" domain="XSharpRef.chm">SetEpoch()</link>,<text styleclass="Bold" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">&#32;</text><link displaytype="text" defaultstyle="true" type="topiclink" href="html\M_XSharp_RT_Functions_Today.htm" domain="XSharpRef.chm">Today()</link></para>
</body>
</topic>
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/command_SET_DECIMALS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<para styleclass="Heading1">语法</para>
<para styleclass="Normal">SET DECIMALS TO [&lt;<text styleclass="Italic">nDecimals</text>&gt;]</para>
<para styleclass="Heading1">参数</para>
<para styleclass="List"><text styleclass="Italic">nDecimals</text>&#32;<tab />指定要显示的最小小数位数。默认为小数点后两位。小数位数最大为 18,最小为 0</para>
<para styleclass="List"><text styleclass="Italic">nDecimals</text>&#32;<tab />指定要显示的最小小数位数。小数位数最大为 18,最小为 0。省略该值时使用 0。</para>
<para styleclass="Heading1">描述</para>
<para styleclass="Normal">不带参数的 SET DECIMALS TO 相当于 SET DECIMALS TO 0。 SET DECIMALS 在功能上等同于 SetDecimal()。 </para>
<para styleclass="Normal">不带值的 SET DECIMALS TO 相当于 SET DECIMALS TO 0。SET DECIMALS 在功能上等同于 SetDecimal()。</para>
<para styleclass="Body Text"><snippet src="__IncludeLibRT" inline="false"/></para>
<para styleclass="Heading1">参见</para>
<para styleclass="Normal"><link displaytype="text" defaultstyle="true" type="topiclink" href="html\Overload_XSharp_Core_Functions_SetDecimal.htm" domain="XSharpRef.chm">SetDecimal()</link><text styleclass="Bold" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">, </text><link displaytype="text" defaultstyle="true" type="topiclink" href="html\Overload_XSharp_Core_Functions_SetDecimalSep.htm" domain="XSharpRef.chm">SetDecimalSep()</link><text styleclass="Bold" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">, </text><link displaytype="text" defaultstyle="true" type="topiclink" href="html\Overload_XSharp_Core_Functions_SetFixed.htm" domain="XSharpRef.chm">SetFixed()</link><text styleclass="Bold" style="font-family:Arial; font-size:10pt; font-weight:normal; font-style:normal; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;">,</text></para>
Expand Down
2 changes: 2 additions & 0 deletions docs/Help_ZH-CN/Topics/command_SET_DIGITS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<para styleclass="Normal">更改显示数字时小数点左侧显示位数的设置。</para>
<para styleclass="Heading1">语法</para>
<para styleclass="Normal">SET DIGITS TO [&lt;<text styleclass="Italic">nDigits</text>&gt;]</para>
<para styleclass="Heading1">参数</para>
<para styleclass="List"><text styleclass="Italic">nDigits</text><tab />位数。省略该值时使用 10。</para>
<para styleclass="Heading1">描述</para>
<para styleclass="Normal">SET DIGITS 在功能上等同于 SetDigit()。 </para>
<para styleclass="Body Text"><snippet src="__IncludeLibRT" inline="false"/></para>
Expand Down
Loading
Loading