pascalabcnet/PABCNetHelp/LangGuide/_ProgrStruct_Defs/constdef.html
Mikhalkovich Stanislav 7aed6ed062 Print($'{Arr(1,2,3)}')
теперь печатает содержимое массива
2025-11-11 22:04:03 +03:00

45 lines
1.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<head>
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="Keyword" value="const">
</object>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title></title>
<link rel="StyleSheet" href="../../default.css">
</head>
<body>
<H1>Описание констант</H1>
<p class="pabcmain">Раздел описания именованных констант
начинается со служебного слова <b>
<code>const</code></b>, после
которого следуют элементы описания вида</p>
<blockquote>
<code class="codeit">имя константы </code>
<code>=</code><code class="codeit"> значение</code><code>;</code>
</blockquote>
<p class="pabcmain">или </p>
<blockquote>
<code class="codeit">имя константы : тип </code>
<code>=</code><code class="codeit"> значение</code><code>;</code>
</blockquote>
<p class="pabcmain">Например:</p>
<blockquote>
<p><code><b>const<br>
</b>&nbsp; Pi = 3.14;<br>
&nbsp;&nbsp;Count = 10;<br>
&nbsp; Name = 'Mike';<br>
&nbsp; DigitsSet = ['0'..'9'];<br>
&nbsp; Arr: <b>array</b> <b>of</b> <b>integer</b> = (1,3,5,7,9);<br>
&nbsp; Rec: <b>record</b> name: <b>string</b>;
age: integer <b>end</b> = (name: 'Иванов';
age: 23);<br>
&nbsp; Arr2: <b>array</b> <b>of</b>
real = ((1,2),(3,4));</code></p>
</blockquote>
<p>&nbsp;</p>
</body>
</html>