<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta content="text/html;charset=utf-8" http-equiv="content-type"></meta><link rel="stylesheet" type="text/css" href="__STYLE__"></link><style type="text/css">
div {font-size: 12pt; font-family: Consolas, Courier New}
.Keywords {color: Red}
.Numerics {color: DimGray}
.Strings {color: Black}
.Dates {color: Gray}
.Identifiers {color: Blue}
.Operators {color: Orange}
.Comments {color: Green}
.Preprocessor {color: Maroon}
.Others {color: Yellow}
.Background {background-color: White}
.CurrentToken {background-color: Gainsboro}
.CurrentSelection {background-color: LightGray}
.PairLexeme {background-color: Silver}
.SearchResult {background-color: DarkGray}
.blockrus {
    float: left;
    width: 640px;
   }
.blockeng {
    float: left;
    width: 580px;
   }
</style><meta name="GENERATOR" content="MSHTML 11.00.9600.19597"></meta></head><body class="Background">
<div class="blockrus">
<div><span class="Preprocessor">#Область ПрограммныйИнтерфейс</span></div>
<div><br></div>
<div><span class="Comments">//Это комментарий к процедуре</span></div>
<div><span class="Comments">//На двух строках</span></div>
<div><span class="Preprocessor">&amp;НаКлиенте</span></div>
<div><span class="Keywords">Процедура</span> <span class="Identifiers">СделатьХорошо</span><span class="Operators">(</span><span class="Identifiers SearchResult">Массив</span><span class="Operators">)</span> <span class="Keywords">Экспорт</span> <span class="Comments">//Результаты поиска</span></div>
<div>    </div>
<div>    <span class="Identifiers CurrentToken">ОтветНаГлавныйВопрос</span> <span class="Operators">=</span> <span class="Numerics">42</span><span class="Operators">;</span> <span class="Comments">//Текущий идентификатор</span></div>
<div>    <span class="Identifiers">ПростоСтрока</span> <span class="Operators">=</span> <span class="Strings">"Просто строка"</span><span class="Operators">;</span></div>
<div>    <span class="Identifiers">ДеньПрограммиста</span> <span class="Operators">=</span> <span class="Dates">'20200912'</span><span class="Operators">;</span></div>
<div>    </div>
<div>    <span class="Keywords">Для</span> <span class="Identifiers CurrentSelection">Индекс</span> <span class="Operators">=</span> <span class="Numerics">0</span> <span class="Keywords">По</span> <span class="Numerics">1023</span> <span class="Keywords">Цикл</span> <span class="Comments">//Выбранный идентификатор</span></div>
<div>        <span class="Identifiers">ТекущийОбъект</span> <span class="Operators">=</span> <span class="Identifiers SearchResult">Массив</span><span class="Operators">[</span><span class="Identifiers CurrentSelection">Индекс</span><span class="Operators">];</span></div>
<div>        <span class="Keywords PairLexeme">Если</span> <span class="Identifiers">ЗначениеЗаполнено</span><span class="Operators">(</span><span class="Identifiers">ТекущийОбъект</span><span class="Operators">)</span> <span class="Keywords">Тогда</span> <span class="Comments">//Границы блока</span></div>
<div>            <span class="Identifiers">ТекущийОбъект</span><span class="Operators">.</span><span class="Identifiers">ДелаемХорошо</span><span class="Operators">();</span></div>
<div>        <span class="Keywords PairLexeme">Иначе</span></div>
<div>            <span class="Identifiers">Сообщить</span><span class="Operators">(</span><span class="Strings">"Не заполнен элемент # "</span><span class="Operators"> + </span><span class="Identifiers CurrentSelection">Индекс</span><span class="Operators">);</span></div>
<div>        <span class="Keywords PairLexeme">КонецЕсли</span><span class="Operators">;</span></div>
<div>    <span class="Keywords">КонецЦикла</span><span class="Operators">;</span></div>
<div>    </div>
<div><span class="Keywords">КонецПроцедуры</span></div>
<div><br></div>
<div><span class="Preprocessor">#КонецОбласти</span></div>
<div><br></div></div>
<div class="blockeng">
<div><span class="Preprocessor">#region public</span></div>
<div><br></div>
<div><span class="Comments">//This is comment to procedure</span></div>
<div><span class="Comments">//On two lines</span></div>
<div><span class="Preprocessor">&amp;atClient</span></div>
<div><span class="Keywords">procedure</span> <span class="Identifiers">makeGreat</span><span class="Operators">(</span><span class="Identifiers SearchResult">array</span><span class="Operators">)</span> <span class="Keywords">export</span> <span class="Comments">//Search result</span></div>
<div>    </div>
<div>    <span class="Identifiers CurrentToken">ultimateAnswer</span> <span class="Operators">=</span> <span class="Numerics">42</span><span class="Operators">;</span> <span class="Comments">//Current token</span></div>
<div>    <span class="Identifiers">simpleString</span> <span class="Operators">=</span> <span class="Strings">"Simple string"</span><span class="Operators">;</span></div>
<div>    <span class="Identifiers">programmersDay</span> <span class="Operators">=</span> <span class="Dates">'20200912'</span><span class="Operators">;</span></div>
<div>    </div>
<div>    <span class="Keywords">for</span> <span class="Identifiers CurrentSelection">index</span> <span class="Operators">=</span> <span class="Numerics">0</span> <span class="Keywords">to</span> <span class="Numerics">1023</span> <span class="Keywords">do</span> <span class="Comments">//Current selection</span></div>
<div>        <span class="Identifiers">currentObject</span> <span class="Operators">=</span> <span class="Identifiers SearchResult">array</span><span class="Operators">[</span><span class="Identifiers CurrentSelection">index</span><span class="Operators">];</span></div>
<div>        <span class="Keywords PairLexeme">if</span> <span class="Identifiers">valueIsFilled</span><span class="Operators">(</span><span class="Identifiers">currentObject</span><span class="Operators">)</span> <span class="Keywords">then</span> <span class="Comments">//Pair lexeme</span></div>
<div>            <span class="Identifiers">currentObject</span><span class="Operators">.</span><span class="Identifiers">makingGreat</span><span class="Operators">();</span></div>
<div>        <span class="Keywords PairLexeme">else</span></div>
<div>            <span class="Identifiers">message</span><span class="Operators">(</span><span class="Strings">"Empty entry # "</span><span class="Operators"> + </span><span class="Identifiers CurrentSelection">index</span><span class="Operators">);</span></div>
<div>        <span class="Keywords PairLexeme">endif</span><span class="Operators">;</span></div>
<div>    <span class="Keywords">enddo</span><span class="Operators">;</span></div>
<div>    </div>
<div><span class="Keywords">endprocedure</span></div>
<div><br></div>
<div><span class="Preprocessor">#endregion</span></div>
<div><br></div></div></body></html>